lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
The first major problem I hit is that the #define for luai_hashnum
requires floating point math, which I have, but may turn off.

If lua_Number is int then just use
#define luai_hashnum(i,d) i=d

If lua_Number is long and long is not the same size as int then you'll
probably want to mixed its bytes into something that fits an int.

I understand that, what I was getting at was that maybe this is a
an issue that can be fixed (if it's actually a problem) luaconf.h

Can we submit proposed patches here?

Ralph