Skip to content

Commit 78b10f4

Browse files
committed
build fix
1 parent ea0464b commit 78b10f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/opto/mulnode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ bool MulNode::AndIL_shift_and_mask(PhaseGVN* phase, Node* mask, Node* shift, Bas
17471747
}
17481748

17491749
jint shift_con = shift2_t->is_int()->get_con() & ((bt == T_INT ? BitsPerJavaInteger : BitsPerJavaLong) - 1);
1750-
if ((1L << shift_con) > mask_t->hi_as_long() && mask_t->lo_as_long() >= 0) {
1750+
if ((((long)1) << shift_con) > mask_t->hi_as_long() && mask_t->lo_as_long() >= 0) {
17511751
return true;
17521752
}
17531753

0 commit comments

Comments
 (0)