[Issue 7834] Assign x%int to int without cast

2012-04-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7834 --- Comment #7 from bearophile_h...@eml.cc 2012-04-24 19:39:48 PDT --- (In reply to comment #6) These two bits of code aren't analogous. If y was -1, when cast to ulong it becomes 0x___ Therefore, x % y could be 0..

[Issue 7834] Assign x%int to int without cast

2012-04-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7834 --- Comment #3 from bearophile_h...@eml.cc 2012-04-22 03:35:15 PDT --- (In reply to comment #2) (In reply to comment #1) Now I think this is supposed to work, so it's not an enhancement request. I don't see where in the spec ulong can be

[Issue 7834] Assign x%int to int without cast

2012-04-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7834 --- Comment #4 from SomeDude lovelyd...@mailmetrash.com 2012-04-22 10:43:27 PDT --- That doesn't make any sense. You can't promote a 64 bit unsigned type into a 32 bit signed type. -- Configure issuemail:

[Issue 7834] Assign x%int to int without cast

2012-04-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7834 --- Comment #5 from bearophile_h...@eml.cc 2012-04-22 11:57:20 PDT --- (In reply to comment #4) That doesn't make any sense. You can't promote a 64 bit unsigned type into a 32 bit signed type. Give me some time to think some more about it,

[Issue 7834] Assign x%int to int without cast

2012-04-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7834 SomeDude lovelyd...@mailmetrash.com changed: What|Removed |Added CC|

[Issue 7834] Assign x%int to int without cast

2012-04-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7834 bearophile_h...@eml.cc changed: What|Removed |Added Summary|Assign x%int to int without |Assign x%int to int without