lua-users home
lua-l archive

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


Why 5.1 support negative and 5.2 do not support negative operating it?

Lua 5.2.1  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> string.format("%X",-1)
stdin:1: bad argument #2 to 'format' (not a non-negative number in proper range)

stack traceback:
        [C]: in function 'format'
        stdin:1: in main chunk
        [C]: in ?