Fix shift that is out of range.
Bug detected by error prone.
Change-Id: I207cde12bdb02dc400544e52132ef386fbb86368
diff --git a/src/com/hp/creals/CR.java b/src/com/hp/creals/CR.java
index dba2597..cfe7226 100644
--- a/src/com/hp/creals/CR.java
+++ b/src/com/hp/creals/CR.java
@@ -728,7 +728,7 @@
scaled_int_rep += exp_adj << 52;
double result = Double.longBitsToDouble(scaled_int_rep);
if (may_underflow) {
- double two48 = (double)(1 << 48);
+ double two48 = (double)(1L << 48);
return result/two48/two48;
} else {
return result;