[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luajit bugs with big number. malformed number near '0x100000000000000000000'
- From: Mike Pall <mikelu-1111@...>
- Date: Sun, 20 Nov 2011 10:34:49 +0100
zhiguo zhao wrote:
> Why? integer too long?
>
> windows 32bits, msvc2008 build.
Support for hexadecimal floating-point numbers is a C99 feature.
MSVC is not C99-compliant, please complain to Microsoft.
> Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> > i = 0x100000000000000
> > print(i)
> 4294967295
Note that you're getting a wrong result with plain Lua. Would you
rather silently get a wrong result or a proper error message?
--Mike