[Issue 2809] Wrong constant folding for unsigned shift

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 16 11:54:17 PST 2010


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



--- Comment #5 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> 2010-11-16 11:53:02 PST ---
>short a(short b) { return b>>>cast(short)1; }
Shouldn't number literals work as smallest possible type and promoted as
needed?
Like here:
---
byte a=1;
---

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