[CLJ-1111] Loops returning primtives are boxed even in return position Created: 21/Nov/12 Updated: 22/Dec/12 Resolved: 22/Dec/12
|Affects Version/s:||Release 1.4|
|Fix Version/s:||Release 1.5|
|Reporter:||Christophe Grand||Assignee:||Christophe Grand|
Last lines of the Java bytecode of `exp-int`:
The compiler doesn't currently infer the primitive type as soon as there is a recur:
|Comment by Stuart Halloway [ 25/Nov/12 7:12 PM ]|
Tests pass, code looks reasonable. Would appreciate additional review.
|Comment by Timothy Baldridge [ 26/Nov/12 10:59 AM ]|
Tests also pass here. Looked through the code and played with a patched version of Clojure. I can't see a problem with it.
|Comment by Christophe Grand [ 27/Nov/12 4:40 AM ]|
FYI, gvec.clj has two loops which return primitives and thus was formerly boxed.