src/hotspot/share/opto/divnode.cpp
changeset 52675 7d3cde494494
parent 47216 71c04702a3d5
--- a/src/hotspot/share/opto/divnode.cpp	Fri Nov 23 10:57:07 2018 +0100
+++ b/src/hotspot/share/opto/divnode.cpp	Thu Nov 22 17:25:47 2018 +0100
@@ -133,7 +133,7 @@
     }
 
     // Add rounding to the shift to handle the sign bit
-    int l = log2_intptr(d-1)+1;
+    int l = log2_jint(d-1)+1;
     if (needs_rounding) {
       // Divide-by-power-of-2 can be made into a shift, but you have to do
       // more math for the rounding.  You need to add 0 for positive