[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: llimits.h redefines/ignores lua_number2int specified in luaconf.h
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 27 Aug 2013 08:53:20 -0300
> For the DirectX FPU precision loss issue which can cause Lua mixups and
> crashes, this fix was suggested at some point:
>
> add to luaconf.h:
> #define lua_number2int(i,d) __asm fld d __asm fistp i
>
> [...]
> lua_number2int to something else by adding it to luaconf.h.
>
> However, llimits.h, if included, doesn't check if lua_number2int was
> previously defined and simply redefines it.
>
> [...]
Could you tell us what version/release of Lua you are discussing?
-- Roberto