mirror of
https://github.com/lua/lua.git
synced 2025-01-14 05:43:00 +08:00
detail (macro evaluates twice its arguments)
This commit is contained in:
parent
1e6a559b29
commit
6dd3a73ca2
6
lvm.c
6
lvm.c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lvm.c,v 2.53 2005/08/24 16:15:49 roberto Exp $
|
||||
** $Id: lvm.c,v 2.54 2005/08/29 20:49:21 roberto Exp roberto $
|
||||
** Lua virtual machine
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -568,8 +568,10 @@ void luaV_execute (lua_State *L, int nexeccalls) {
|
||||
continue;
|
||||
}
|
||||
case OP_EQ: {
|
||||
TValue *rb = RKB(i);
|
||||
TValue *rc = RKC(i);
|
||||
Protect(
|
||||
if (equalobj(L, RKB(i), RKC(i)) == GETARG_A(i))
|
||||
if (equalobj(L, rb, rc) == GETARG_A(i))
|
||||
dojump(L, pc, GETARG_sBx(*pc));
|
||||
)
|
||||
pc++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user