lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


At least one of the service packs for VC6 had something to do with
that instruction I believe. I remember getting similar errors on a
previously working code-base after I got a new machine with VC6
installed (but no service packs). I think SP5 is the last available
for Visual C 6...

On 5/19/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
> >
>