diff options
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -127,7 +127,9 @@ void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, | |||
127 | StkId res) { | 127 | StkId res) { |
128 | if (!luaO_rawarith(L, op, p1, p2, s2v(res))) { | 128 | if (!luaO_rawarith(L, op, p1, p2, s2v(res))) { |
129 | /* could not perform raw operation; try metamethod */ | 129 | /* could not perform raw operation; try metamethod */ |
130 | ptrdiff_t top = savestack(L, L->top); | ||
130 | luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD)); | 131 | luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD)); |
132 | L->top = restorestack(L, top); | ||
131 | } | 133 | } |
132 | } | 134 | } |
133 | 135 | ||