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
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/2f5ba437c6b584bbaf4d15fc451f239bb6122967 Refactor VRP + fix issue 15289 https://github.com/dlang/dmd/commit/ddd07f6af7ea93dcebb7412cdaeed86e20eb2e69 Merge pull request #7355 from somzzz/vrp_quick_math Refactor VRP + fix issue 15289
Comment #2 by github-bugzilla — 2017-12-18T22:57:43Z