lua-users home
lua-l archive

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


>Editting lua.h to change the typedef went smoothly.  I ended up with a
>number of warnings about lost precision, but some static_cast and c-style
>casts to lua_Number took care of that.  

There's no need to edit lua.h. As mentioned in config, it is enough to
add this to config:

NUMBER= -DLUA_USER_H='"../etc/luser_number.h"' -DUSE_FLOAT

I don't get *any* warnings with this. Are you using Lua 5.0?
--lhf