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_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