<< 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



user=> (*' Long/MAX_VALUE 100M)
user=> (long *1)
user=> (Double/valueOf Double/MAX_VALUE)
user=> (long *1)

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

Generated at Wed Aug 23 21:57:57 CDT 2017 using JIRA 4.4#649-r158309.