lua-users home
lua-l archive

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


Same on VC7.1. 

> -----Original Message-----
> With VC6
> 
> ltable.c(122) : warning C4405: 'fistp' : identifier is reserved word
> ltable.c(122) : error C2400: inline assembler syntax error in 
> 'first operand'; f ound 'k'
> ltable.c(453) : warning C4709: comma operator within array 
> index expression
> ltable.c(473) : warning C4405: 'fistp' : identifier is reserved word
> ltable.c(473) : error C2400: inline assembler syntax error in 
> 'first operand'; f ound 'k'
> 
> 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
> >
>