Skip to content

Commit

Permalink
Use jdk8 compliant API, re #4
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Jun 6, 2020
1 parent 4c86c7f commit d90a478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/libj/math/LongDecimal.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit d90a478

Please sign in to comment.