[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Undefined behaviour in luaL_checkversion_()
- From: Thomas Fields <thomasmfields@...>
- Date: Thu, 13 Sep 2012 13:13:10 +0100
> This is not the default definition for lua_number2unsigned. The default is this one:
#define SUPUNSIGNED ((lua_Number)(~(lua_Unsigned)0) + 1)
#define lua_number2unsigned(i,n) \
((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED))
> which should have a defined behavior...
>
Can you give more information about this?
Sure, I do this in luaconf.h:
//#define LUA_NUMBER_DOUBLE
#define LUA_NUMBER float
Tom