<< Back to previous view

[CLJ-782] long cast is not checked for Object decimal types Created: 28/Apr/11  Updated: 06/May/11  Resolved: 06/May/11

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: None
Fix Version/s: Release 1.3

Type: Defect Priority: Major
Reporter: Alexander Taggart Assignee: Alexander Taggart
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File check-longs.patch     Text File check-longs-update-1.patch    
Patch: Code and Test
Approval: Ok

 Description   

E.g.:

user=> (*' Long/MAX_VALUE 100M)
922337203685477580700M
user=> (long *1)
-100
user=> (Double/valueOf Double/MAX_VALUE)
1.7976931348623157E308
user=> (long *1)
9223372036854775807

And the numbers.clj test erroneously considers truncation as correct.


Generated at Sat Aug 30 07:11:59 CDT 2014 using JIRA 4.4#649-r158309.