From 04587b62562f246e89d1b138bed5b90ee4bdfe69 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 12 Nov 2015 16:08:58 -0200 Subject: [PATCH] macro with empty argument can be seen as macro with no argument; better to avoid that --- lvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lvm.c b/lvm.c index 8894df99..ecf00c39 100644 --- 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) */