[Issue 7423] Regression (2.057): Hex Literals are no longer treated as unsigned.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 19 23:20:59 PDT 2012


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



--- Comment #7 from Adam Wilson <flyboynw at gmail.com> 2012-03-19 23:21:16 PDT ---
I initially thought something along the same lines and tried it on a single
statement like so:

x = (cast(unit)((x&0xCCCC_CCCC)>>2)) + (x&0x3333_3333);

No dice.

DMD throws on every Hex literal in druntime/phobos, regardless of usage; hence
the cast(unit) sitting directly in front of the literal itself. Based on the
debugging info that I see, it looks like DMD is internally creating int's out
of hex literals somewhere.

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