lua-users home
lua-l archive

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


2013/3/25 Miles Bader <miles@gnu.org>:
> Alexey Baskakov <alexey_baskakov@hotmail.com> writes:
>> In essence, using LUA_NUMBER as float isn't LuaCSP specific. LuaCSP is
>> (almost) independent to that.
>>
>> Float LUA_NUMBERS are used in game development mostly. That's it.
>
> How does the bit32 library cope with that?

It will work if both lua_number2unsigned and lua_unsigned2number work.
There seems to be no reason for them not to work as long as you don't
do anything to bit32 values stored as values of type 'number' except
operate on them using the bit32 library, but that part of llimits.h is
too hairy for me to follow.

> -miles
>
> --
> We live, as we dream -- alone....
>