commit 04587b62562f246e89d1b138bed5b90ee4bdfe69
parent bde03eeb489fff399715b17465ac07fdbb33acf1
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 12 Nov 2015 16:08:32 -0200
macro with empty argument can be seen as macro with no argument; better
to avoid that
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lvm.c b/lvm.c
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.c,v 2.259 2015/11/02 14:06:01 roberto Exp roberto $
+** $Id: lvm.c,v 2.260 2015/11/02 18:48:07 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -1115,7 +1115,7 @@ void luaV_execute (lua_State *L) {
if (luaD_precall(L, ra, nresults)) { /* C function? */
if (nresults >= 0)
L->top = ci->top; /* adjust results */
- Protect(); /* update 'base' */
+ Protect((void)0); /* update 'base' */
}
else { /* Lua function */
ci = L->ci;
@@ -1128,7 +1128,7 @@ void luaV_execute (lua_State *L) {
if (b != 0) L->top = ra+b; /* else previous instruction set top */
lua_assert(GETARG_C(i) - 1 == LUA_MULTRET);
if (luaD_precall(L, ra, LUA_MULTRET)) { /* C function? */
- Protect(); /* update 'base' */
+ Protect((void)0); /* update 'base' */
}
else {
/* tail call: put called frame (n) in place of caller one (o) */