From d90a478548da26c5f9adc6badbb60197218f6144 Mon Sep 17 00:00:00 2001 From: Seva Safris Date: Sat, 6 Jun 2020 17:25:35 +0700 Subject: [PATCH] Use jdk8 compliant API, re #4 --- src/main/java/org/libj/math/LongDecimal.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/libj/math/LongDecimal.java b/src/main/java/org/libj/math/LongDecimal.java index dd15dd0d..196972a2 100644 --- a/src/main/java/org/libj/math/LongDecimal.java +++ b/src/main/java/org/libj/math/LongDecimal.java @@ -31,8 +31,8 @@ private static long mask(final byte bits) { } private static boolean willProductOverflow(final long x, final long y) { - return Math.multiplyHigh(x, y) != 0; -// return (double)x * (double)y >= Long.MAX_VALUE; +// return Math.multiplyHigh(x, y) != 0; + return (double)x * (double)y >= Long.MAX_VALUE; } /**