lua-users home
lua-l archive

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


On 19/04/2011 19:10, Roberto Ierusalimschy wrote:
Lua 5.1 manual - http://www.lua.org/manual/5.1/manual.html#pdf-tonumber

   In other [different from 10] bases, only unsigned integers are accepted.

I forgot about this one. There must be a reason for that, as it seems as an unnecessary limitation? (I was just bitten by that in my app).

On 19/04/2011 19:36, Lorenzo Donati wrote:
Works OK for me with Lua 5.1.4 on WinXP (32 bit) compiled with TDM-GCC 4.5.1

Recompiled Lua with GCC 4.4.1, also got -16. The previous result was with Lua compiled long time ago by GCC 3.4.

Thanks to all who replied!

--
Shmuel