[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 7 Jul 2013 14:36:38 -0300
> 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