Welcome! Please see the About page for a little more info on how this works.

0 votes
in Java Interop by

user=> (/ Long/MIN_VALUE -1) -9223372036854775808

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

2 Answers

0 votes
by

Comment made by: jafingerhut

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.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1253 (reported by jafingerhut)
...