Bug 15289 – VRP not working as expected on division
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2015-11-05T08:49:53Z
Last change time
2017-12-18T22:57:43Z
Assigned to
Lucia Cojocaru
Creator
deadalnix
Comments
Comment #0 by deadalnix — 2015-11-05T08:49:53Z
Error: cannot implicitly convert expression (50LU / dirties.length) of type ulong to uint
When doing uint foo = 50 / arr.length;
I don't think this is ever going to overflow, so we are safe.
Comment #1 by github-bugzilla — 2017-12-12T14:04:33Z