November 07, 2013 [Issue 3970] Problem with cast -1.0L ==> uint/ulong | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=3970 safety0ff.bugz <safety0ff.bugz@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |safety0ff.bugz@gmail.com --- Comment #4 from safety0ff.bugz <safety0ff.bugz@gmail.com> 2013-11-06 17:36:10 PST --- Could be related to issue 9844, can somebody re-test on the affected platform(s)? -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 07, 2013 [Issue 3970] Problem with cast -1.0L ==> uint/ulong | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=3970 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from bearophile_hugs@eml.cc 2013-11-07 01:24:39 PST --- Now this passes on Windows32, I close down the issue: void main() { static assert((cast(ushort)(-1.0L)) == 0xFFFFU); static assert((cast(uint)(-1.0)) == 0xFFFF_FFFFU); static assert((cast(uint)(-1.0L)) == 0xFFFF_FFFFU); static assert((cast(ulong)(-1.0L)) == 0xFFFF_FFFF_FFFF_FFFFUL); assert((cast(ushort)(-1.0L)) == 0xFFFF); assert((cast(uint)(-1.0)) == 0xFFFF_FFFFU); assert((cast(uint)(-1.0L)) == 0xFFFF_FFFFU); assert((cast(ulong)(-1.0L)) == 0xFFFF_FFFF_FFFF_FFFFUL); } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation