luaV_lessthan and luaG_ordererror

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

luaV_lessthan and luaG_ordererror

Edgar Toernig
Hi,

I think, luaV_lessthan needs a L->top=top before the
luaD_checkstack call.  And then, it passes a bogus pointer
to luaG_ordererror.  It will work when luaV_lessthan is
called by the virtual machine.  But lua_lessthan passes
two arbitrary objects to luaV_lessthan ...

Ciao, ET.