diff options
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -372,7 +372,7 @@ void luaD_tryfuncTM (lua_State *L, StkId func) { | |||
372 | const TValue *tm = luaT_gettmbyobj(L, s2v(func), TM_CALL); | 372 | const TValue *tm = luaT_gettmbyobj(L, s2v(func), TM_CALL); |
373 | StkId p; | 373 | StkId p; |
374 | if (unlikely(ttisnil(tm))) | 374 | if (unlikely(ttisnil(tm))) |
375 | luaG_typeerror(L, s2v(func), "call"); /* nothing to call */ | 375 | luaG_callerror(L, s2v(func)); /* nothing to call */ |
376 | for (p = L->top; p > func; p--) /* open space for metamethod */ | 376 | for (p = L->top; p > func; p--) /* open space for metamethod */ |
377 | setobjs2s(L, p, p-1); | 377 | setobjs2s(L, p, p-1); |
378 | L->top++; /* stack space pre-allocated by the caller */ | 378 | L->top++; /* stack space pre-allocated by the caller */ |