lua-users home
lua-l archive

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



Maybe it is about the number resolution. Changing LUA_INTEGER won't give 64-bit accuracy, since numbers are stored as doubles.

I suggested him to take the LNUM patch, and study anything LNUM_INT64 in it. I'd just use the LNUM patch as is.

-asko


Luiz Henrique de Figueiredo kirjoitti 23.7.2008 kello 4:22:

I would like to change the original Lua distribution to switch from "int32" to "int64" for integer support in a totally backward compatible way with existing Lua modules and tools. What are the absolute minimal changes that need to be made to the Lua core?

I'm not sure what you mean here. Lua does not use either "int32" or
"int64". If you mean the size of lua_Integer, that's configurable
by changing LUA_INTEGER in luaconf.h. But you'll not get binary
compatibility with existing Lua modules and tools; you'd have to
recompile them.