[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Can lua 5.2 support int64?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 16 Dec 2010 09:45:33 -0200
> Thanks a lot.
> My compiler is vs2008(vc9) I have try to define LUA_INTEGER long double,
> and also have the problem:
>
> [...]
LUA_INTEGER is only the type used in the C API; the type used by Lua
internally is LUA_NUMBER. Besides changing LUA_NUMBER, you have to
change several other macros in luaconf.h so that operations applied
over LUA_NUMBERs are corrected to the new type. (See
http://lua-users.org/lists/lua-l/2010-11/msg00098.html for some
inspiration.)
-- Roberto