jetCheck: merge two ints into one double without sign promotion

This commit is contained in:
peter
2017-09-15 22:04:11 +02:00
parent 8561e8cb19
commit 2f1cb559a3
+1 -1
View File
@@ -223,7 +223,7 @@ public class Generator<T> {
return from(data -> {
long i1 = data.drawInt();
long i2 = data.drawInt();
return Double.longBitsToDouble((i1 << 32) + i2);
return Double.longBitsToDouble((i1 << 32) + (i2 & 0xffffffffL));
});
}