[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (work6) now available (for loop bug)
- From: David Burgess <dburgess@...>
- Date: Fri, 20 May 2005 00:15:55 +1000
Also with VC6
#define lua_number2int(i,d) \
__asm fld d \
__asm fistp i
Works for me.
DB
On 5/20/05, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> About the bug in the definition of lua_number2int for Windows, can
> someone test this alternative definition (luaconf.h)?
>
> 439,441c439,441
> < #define lua_number2int(i,d) \
> < __asm fld d; \
> < __asm fistp i;
> ---
> > #define lua_number2int(i,d) __asm { fld d \
> > fistp i \
> > }
>
> Thanks,
>
> -- Roberto
>