[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: BitOp and the LNUM patch?
- From: Mike Pall <mikelu-1102@...>
- Date: Tue, 22 Feb 2011 23:34:13 +0100
> 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.