Closed
Bug 869194
Opened 10 years ago
Closed 10 years ago
CheckedInt should consistently reject unsupported types
Categories
(Core :: MFBT, defect)
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: adw, Assigned: bjacob)
References
Details
Attachments
(1 file)
Bug 869188 describes a compiler error due to initializing a CheckedInt<int32> from a float value. CheckedInt should consistently and helpfully reject this. Benoit, please correct me if I missed or got something wrong in the description here.
Assignee | ||
Comment 1•10 years ago
|
||
You got this absolutely right. In addition, binary operators between CheckedInts and floats should also fail to compile. Self assigning.
Assignee: nobody → bjacob
Assignee | ||
Comment 2•10 years ago
|
||
This does it, catches bug 869188.
Attachment #746108 -
Flags: review?(jwalden+bmo)
Updated•10 years ago
|
Attachment #746108 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Updated•10 years ago
|
Summary: CheckedInt should consistently and helpfully reject initialization from float value → CheckedInt should consistently reject unsupported types
Assignee | ||
Comment 3•10 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/e725c1aa589d
Target Milestone: --- → mozilla23
Comment 4•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e725c1aa589d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•