[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can lua 5.2 support int64?
- From: 周帆 <zzffbbpp@...>
- Date: Thu, 16 Dec 2010 10:29:54 +0800
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" ;-(