[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Porting Lua to Windows Mobile Professional 6.5.3
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 2 Jun 2011 13:05:02 -0300
> syntax error: [string "return 42"]:1: malformed number near '42ÿ'
Ah, ÿ is 0xFF. So, somehow -1 is getting mapped into 0xFF.
It seems to be a faulty isdigit, which is mapping -1 to 0xFF *and*
thinking 0xFF is a digit! Try using your own isdigit...
If you want to trace this, the place to start is read_numeral in llex.c.
- References:
- Porting Lua to Windows Mobile Professional 6.5.3, Marc Balmer
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Rebel Neurofog
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Marc Balmer
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Reuben Thomas
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Thomas Harning Jr.
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Reuben Thomas
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Luiz Henrique de Figueiredo
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Marc Balmer
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Luiz Henrique de Figueiredo
- Re: Porting Lua to Windows Mobile Professional 6.5.3, Marc Balmer