lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Nov 26, 2011 at 05:02, Petite Abeille <petite.abeille@gmail.com> wrote:
>
> On Nov 26, 2011, at 1:40 AM, Alexander Gladysh wrote:
>
>> Same with LuaJIT 2. Haven't tried 5.2.
>
> Hmmm... get 16896643247 in both cases in 5.2...
>
> $ lua -v
> Lua 5.2.0  Copyright (C) 1994-2011 Lua.org, PUC-Rio
>
> s="3ef1e50af"
> print( tonumber(s, 16) )
> print( ("0x"..s) + 0 )
>
>> 16896643247
>> 16896643247

Yep, judging from the code, it is fixed in 5.2. Is this fix justified
to be included in LJ2 5.1 mode as well?

Alexander.