8288270: Tier1 build failures after JDK-8287178

Reviewed-by: weijun, jiefu
This commit is contained in:
Hai-May Chao 2022-06-10 23:58:15 +00:00
parent d4b473d890
commit f7a4be75fb

View File

@ -161,7 +161,7 @@ public interface IntegerModuloP {
// this number must be non zero (modulo p).
// 2. To flatten a 3D point to a 2D AffinePoint. This number
// might be zero (infinity). However, since the infinity
// is represented as (0, 0) in 2D, its OK returning 0 as
// is represented as (0, 0) in 2D, it's OK returning 0 as
// the inverse of 0, i.e. (1, 1, 0) == (1/0, 1/0) == (0, 0).
return pow(getField().getSize().subtract(BigInteger.valueOf(2)));
}