[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:28:55 +1000
In summary I cannot find a valid way to use the braced sybtax.
DB
On 5/20/05, David Burgess <dburgess@gmail.com> wrote:
> 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
> >
>