diff options
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -147,7 +147,6 @@ static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, | |||
147 | 147 | ||
148 | void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, | 148 | void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, |
149 | StkId res, TMS event) { | 149 | StkId res, TMS event) { |
150 | L->top = L->ci->top; | ||
151 | if (!callbinTM(L, p1, p2, res, event)) { | 150 | if (!callbinTM(L, p1, p2, res, event)) { |
152 | switch (event) { | 151 | switch (event) { |
153 | case TM_BAND: case TM_BOR: case TM_BXOR: | 152 | case TM_BAND: case TM_BOR: case TM_BXOR: |
@@ -191,7 +190,6 @@ void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, | |||
191 | 190 | ||
192 | int luaT_callorderTM (lua_State *L, const TValue *p1, const TValue *p2, | 191 | int luaT_callorderTM (lua_State *L, const TValue *p1, const TValue *p2, |
193 | TMS event) { | 192 | TMS event) { |
194 | L->top = L->ci->top; | ||
195 | if (callbinTM(L, p1, p2, L->top, event)) /* try original event */ | 193 | if (callbinTM(L, p1, p2, L->top, event)) /* try original event */ |
196 | return !l_isfalse(s2v(L->top)); | 194 | return !l_isfalse(s2v(L->top)); |
197 | #if defined(LUA_COMPAT_LT_LE) | 195 | #if defined(LUA_COMPAT_LT_LE) |