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 7, 2013, 12:56 AM

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.

Assignee

Unassigned

Reporter

Andy Fingerhut

Labels

Approval

Triaged

Patch

Code and Test

Affects versions

Priority

Minor