Java is giving us convenient constants, use them.
Change-Id: Ic62d89a60618fad1555a9651a65846f229218f0b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
eec7d0dd680ac6773090703d5ff7ec2588cc8123)
MIN_VALUE = new Decimal64[MAX_SCALE];
MAX_VALUE = new Decimal64[MAX_SCALE];
for (byte i = 0; i < MAX_SCALE; ++i) {
- MIN_VALUE[i] = new Decimal64(i, -9223372036854775808L);
- MAX_VALUE[i] = new Decimal64(i, 9223372036854775807L);
+ MIN_VALUE[i] = new Decimal64(i, Long.MIN_VALUE);
+ MAX_VALUE[i] = new Decimal64(i, Long.MAX_VALUE);
}
}