[antlr-interest] Re: MSVC 7.0
lgcraymer
lgc at mail1.jpl.nasa.gov
Thu Oct 2 13:15:53 PDT 2003
--- In antlr-interest at yahoogroups.com, "Arnar Birgisson" <arnarb at o...>
wrote:
...
> Then, somewhere along the way, the expected character becomes an
int,
> and should be 0x000000f0, but is generated as 0xfffffff0. When 0xf0
is
> seen on the input, this causes a MismatchedCharException and it
tries to
> generate it's message, it calls charName for 0xfffffff0 (the
expected
> char), which in turn calls isprint and since 0xfffffff0 is negative,
it
> blows up.
This looks more like a signed versus unsigned character problem. As a
signed "char", 0xf0 is -120 when converted to int, but as an unsigned
char value is 248. MSVC should have a compiler flag which interprets
char as "unsigned char"; if not, Ric may be able to fix this pretty
quickly if you ask.
--Loring
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list