RFR: 8272541: Incorrect overflow test in Toom-Cook branch of BigInteger multiplication

Joe Darcy darcy at openjdk.java.net
Thu Aug 26 22:42:24 UTC 2021


On Mon, 16 Aug 2021 21:00:00 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Please consider this change which would modify a conditional `a + b > c` where the left side variables are `int`s and the right side is `(long)Integer.MAX_VALUE + 1`. The change is to cast the left side variables to `long`s.

Marked as reviewed by darcy (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/5130


More information about the core-libs-dev mailing list