lua-users home
lua-l archive

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


You are writes, This lua 5.1.4 bugs,

Thanks.

2011/11/20 Mike Pall <mikelu-1111@mike.de>
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