lua-users home
lua-l archive

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


ernie wrote:
> Has anyone tried the BitOp module with LNUM patch applied to Lua?
> It wouldn't build because of the number type is unknown.

You probably need to add the LUA_NUMBER_DOUBLE define back to
luaconf.h. Note that Lua BitOp will not work with a number type of
float or a float/int mix.

> It looks like barg should basically just call lua_tointeger() ??

This won't give you the desired semantics. With LNUM it has to go
via lua_tonumber(). That's rather inefficient, but so is LNUM.

--Mike