--- Comment #10 from Don <> 2012-03-20 12:35:34 PDT ---
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #7)
> > Hex literals are supposed to be ints, not uints. The code should work 
> > anyway,
> > because x is a uint, therefore (x & LITERAL) is of type uint.
> Sigh, and I've got a number of other people telling me it should be uint. I'm
> going to ask Walter for the final answer.

I'm wrong, it's in the spec (lexer.html).

If it is in the range, it is an int.
If it is in the range int.max+1u .. uint.max, it is a uint.
You can check it with this:

static assert(is (typeof(0x7FFF_FFFF) == int));
static assert(is (typeof(0x8000_0000) == uint));

So, it looks as though your original interpretation of the issue wasn't
correct. There may be something else going on though.

The fact that you were on Windows rules out a 64 bit codegen issue, which was
the obvious scapegoat.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to