changeset 59942:97726b05c864

8248347: windows build broken by JDK-8243114 Reviewed-by: dcubed, dholmes
author kvn
date Thu, 25 Jun 2020 16:01:16 -0700
parents 315169f1f73a
children d1a9e4218c78
files src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp	Thu Jun 25 21:46:12 2020 +0200
+++ b/src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp	Thu Jun 25 16:01:16 2020 -0700
@@ -3770,7 +3770,7 @@
   julong t0 = 0, t1 = 0, t2 = 0; // Triple-precision accumulator
   int i;
 
-  assert(inv * n[0] == -1ULL, "broken inverse in Montgomery multiply");
+  assert(inv * n[0] == ULLONG_MAX, "broken inverse in Montgomery multiply");
 
   for (i = 0; i < len; i++) {
     int j;
@@ -3812,7 +3812,7 @@
   julong t0 = 0, t1 = 0, t2 = 0; // Triple-precision accumulator
   int i;
 
-  assert(inv * n[0] == -1ULL, "broken inverse in Montgomery square");
+  assert(inv * n[0] == ULLONG_MAX, "broken inverse in Montgomery square");
 
   for (i = 0; i < len; i++) {
     int j;