[Issue 259] Comparing signed to unsigned does not generate an error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 9 03:02:27 PDT 2013


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



--- Comment #42 from Lionello Lunesu <lio+bugzilla at lunesu.com> 2013-04-09 03:02:20 PDT ---
Yes, I'll have this done this week.

For point 1: how to cope with the fact that I can safely cast an uint to long,
but can't cast an int to an ulong (without issues)? 

Surely cast(int)-1 < cast(ulong)1 should evaluate to true? But according to
point 1 it would be rewritten as cast(ulong)-1 < cast(ulong)1 which is
0xFFFFFFFFFFFFFFFF < 0x1 and evaluate to false.

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