lua-users home
lua-l archive

Re: luajit bugs with big number. malformed number near '0x100000000000000000000'

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


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

AltStyle によって変換されたページ (->オリジナル) /