[Issue 3280] comparing array length is wonky

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 1 17:09:24 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3280


Jarrett Billingsley <jarrett.billingsley at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jarrett.billingsley at gmail.c
                   |                            |om




--- Comment #1 from Jarrett Billingsley <jarrett.billingsley at gmail.com>  2009-09-01 17:09:24 PDT ---
Sorry, invalid. typeof(s.length) is unsigned, typeof(-1) is signed. The
compiler should throw an error on the last assert, but doesn't. Instead, it
casts -1 to size_t, resulting in something like "assert(s.length >
0xFFFFFFFF);" See bug 259.

-- 
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