lua-users home
lua-l archive

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


Dirk Laurie <dirk.laurie@gmail.com> writes:
>>> 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.

I meant, because there isn't enough space in the mantissa of an IEEE
float to store 32 bits... :]

-miles

-- 
Selfish, adj. Devoid of consideration for the selfishness of others.