lua-users home
lua-l archive

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


> Lua 5.3.0 (work1)  Copyright (C) 1994-2013 Lua.org, PUC-Rio
> > a=0x12345678abcdfedc
> > =a
> -1412563236
> > =a>0
> true
> 
> Is this expected behavior (on Windows XP x86) ?

Not at all. If you are using 64-bit integers, the printing is wrong;
'a' should be 1311768467750125276. Can you try this?

> = a .. ''
> = string.format("%d", a)
> = string.format("%x", a)
> io.write(a, "\n")

-- Roberto