aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 066f4152..0468f34b 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.164 2012/06/08 15:14:04 roberto Exp roberto $ 2** $Id: lapi.c,v 2.165 2012/08/14 18:12:34 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -295,7 +295,7 @@ LUA_API void lua_arith (lua_State *L, int op) {
295 o1 = L->top - 2; 295 o1 = L->top - 2;
296 o2 = L->top - 1; 296 o2 = L->top - 1;
297 if (ttisnumber(o1) && ttisnumber(o2)) { 297 if (ttisnumber(o1) && ttisnumber(o2)) {
298 changenvalue(o1, luaO_arith(op, nvalue(o1), nvalue(o2))); 298 setnvalue(o1, luaO_arith(op, nvalue(o1), nvalue(o2)));
299 } 299 }
300 else 300 else
301 luaV_arith(L, o1, o1, o2, cast(TMS, op - LUA_OPADD + TM_ADD)); 301 luaV_arith(L, o1, o1, o2, cast(TMS, op - LUA_OPADD + TM_ADD));