[Issue 10093] wrong unsigned arithmetic
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 16 06:37:29 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10093
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |schveiguy at yahoo.com
Resolution| |INVALID
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-05-16 06:37:28 PDT ---
This is expected, array length is an unsigned property. unsigned math results
in unsigned result.
You are basically saying:
static assert(-3u < 0)
0 is promoted to unsigned, and 0xff_ff_ff_fd is compared to it.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list