diff options
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 2.70 2013/12/18 14:12:03 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.71 2013/12/30 20:47:58 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -93,13 +93,13 @@ static lua_Integer intarith (lua_State *L, int op, lua_Integer v1, | |||
93 | 93 | ||
94 | static lua_Number numarith (int op, lua_Number v1, lua_Number v2) { | 94 | static lua_Number numarith (int op, lua_Number v1, lua_Number v2) { |
95 | switch (op) { | 95 | switch (op) { |
96 | case LUA_OPADD: return luai_numadd(NULL, v1, v2); | 96 | case LUA_OPADD: return luai_numadd(v1, v2); |
97 | case LUA_OPSUB: return luai_numsub(NULL, v1, v2); | 97 | case LUA_OPSUB: return luai_numsub(v1, v2); |
98 | case LUA_OPMUL: return luai_nummul(NULL, v1, v2); | 98 | case LUA_OPMUL: return luai_nummul(v1, v2); |
99 | case LUA_OPDIV: return luai_numdiv(NULL, v1, v2); | 99 | case LUA_OPDIV: return luai_numdiv(v1, v2); |
100 | case LUA_OPMOD: return luai_nummod(NULL, v1, v2); | 100 | case LUA_OPMOD: return luai_nummod(v1, v2); |
101 | case LUA_OPPOW: return luai_numpow(NULL, v1, v2); | 101 | case LUA_OPPOW: return luai_numpow(v1, v2); |
102 | case LUA_OPUNM: return luai_numunm(NULL, v1); | 102 | case LUA_OPUNM: return luai_numunm(v1); |
103 | default: lua_assert(0); return 0; | 103 | default: lua_assert(0); return 0; |
104 | } | 104 | } |
105 | } | 105 | } |