lua-users home
lua-l archive

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


On Thu, Dec 16, 2010 at 1:07 AM, Patrick Rapin <toupie300@gmail.com> wrote:
>> 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" ;-(
>

oops, I forgot that MSVC can be used to compile lua. What I meant is
128-bit floating point which is the native number type for SSE, and
lossless holds an int64 value.