[Issue 3468] dmd allows negative values to be assigned to an uint variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 16 09:05:21 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=3468

Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh at gmail.com

--- Comment #3 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
That would make unsigned types way more sane to work with.

And those who like -1 to be shortcut for "all 1's" could use ~0.

--


More information about the Digitalmars-d-bugs mailing list