[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: Jonas Thiem <jonasthiem@...>
- Date: Tue, 27 Aug 2013 14:16:57 +0200
This is from Lua 5.2.1. I suppose I should update to 5.2.2, was it fixed
there?
I know the suggested asm definition is for Lua 5.1, but nevertheless it
would be nice if Lua 5.2 allowed defining lua_number2int to something
else through luaconf.h without modifying llimits.h (which doesn't seem
to be possible right now, at least for 5.2.1).
On 08/27/2013 01:53 PM, Roberto Ierusalimschy wrote:
>> 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
>
Attachment:
signature.asc
Description: OpenPGP digital signature