Incorrect long division involving Long/MIN_VALUE

Description

Similar issue to CLJ-1222, with the same root cause as described for CLJ-1225.

Environment

None

Activity

Show:
Andy Fingerhut
September 6, 2013, 2:56 PM

Patch clj-1253-1.txt corrects LongOps method divide for the case of args Long/MIN_VALUE and -1. It returns a BigInt in this case, not a Long, but most other pairs of values passed to this function return a Ratio exact answer, so it seems reasonable in this one case to return a BigInt exact answer when it will not fit in a Long.

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

Andy Fingerhut

Labels

Approval

Triaged

Patch

Code and Test

Priority

Minor

Affects versions