lua-users home
lua-l archive

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


Thanks a lot.
My compiler is vs2008(vc9) I have try to define LUA_INTEGER long double,
and also have the problem:


Lua 5.2.0 (alpha)  Copyright (C) 1994-2010 Lua.org, PUC-Rio
> a, b = 9223372036854775807, -9223372036854775808
> print(a,b)
9.2233720368548e+018    -9.2233720368548e+018
>


Can somebody help me ?

> > > > May I suggest you use long double as lua_integer, which should
handle
> > > > 64-bit integer without problem, and less prone to error.
> > Yes, but the "__int64" type seems to indicate that a Microsoft
> > compiler is used, and that compiler considers "long double" to be 64
> > bits long just like regular "double" ;-(