lua-users home
lua-l archive

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


Hi,

Michael Wolf wrote:
> It's that Microsoft special version of lua_number2int that generates the 
> error:
> 
> #define lua_number2int(i,d)   __asm fld d   __asm fistp i

Ouch! Seems MS inline assembly doesn't handle struct accesses. :-/

Please try replacing this line in luaconf.h with:

#define lua_number2int(i,d) { double l_d = (d); __asm fld l_d  __asm fistp i }

Make sure this variant is still enabled. Does this work now?


Looks like I have to release yet another minor update now. *sigh*

[Note that plain Lua is not affected because this macro is only
used with local variables.]

Bye,
     Mike