[Issue 259] Comparing signed to unsigned does not generate an error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 18 13:13:15 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=259
Witold Baryluk <baryluk at smp.if.uj.edu.pl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |baryluk at smp.if.uj.edu.pl
--- Comment #17 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2009-11-18 13:13:14 PST ---
Hi,
I today found remarkable bug:
int k = -1;
uint n = 7;
assert(k < n);
Code above should execute without proble, but dmd it computing false as value
of (k<n) which absolutly nonsensical. casting n to int, resolves problem
int k = -1;
uint n = 7;
assert(k < cast(T)n);
How it can be so long time not resolved?
--
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