Fix compile-time constant expression overflows
This change fixes compile-time constant expressions that overflow, in
preparation for enabling a new compiler error.
More information:
Tested:
TAP --sample for global presubmit queue
@@ -105,6 +105,7 @@ public class Main {
assert 9007199254740993L == g; // Binary
}
+ @SuppressWarnings("ConstantOverflow")
public static void testOverAndUnderflow() {
long a = 999999999999999999L * 1000L;
assert 3875820019684211736L == a;
