8368301: sun/security/util/math/intpoly compiler warnings

Reviewed-by: mullan
This commit is contained in:
Koushik Thirupattur 2025-10-30 17:24:11 +00:00 committed by Sean Mullan
parent a2196e2060
commit d18e815b94

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -628,7 +628,7 @@ public class FieldGen {
result.appendLine("private static final long CARRY_ADD = 1 << "
+ (params.getBitsPerLimb() - 1) + ";");
if (params.getBitsPerLimb() * params.getNumLimbs() != params.getPower()) {
result.appendLine("private static final int LIMB_MASK = -1 "
result.appendLine("private static final long LIMB_MASK = -1L "
+ ">>> (64 - BITS_PER_LIMB);");
}