diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-01-27 11:34:32 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-01-27 11:34:32 -0200 |
| commit | 86dd8bf3f58f118003d4b02773be08b68a5091ef (patch) | |
| tree | 024776667a483fe4ed319f77ae050968a2f12a7b /lobject.c | |
| parent | 67c5de928349bfff6ed8b4ae5ed1abe05abcb08e (diff) | |
| download | lua-86dd8bf3f58f118003d4b02773be08b68a5091ef.tar.gz lua-86dd8bf3f58f118003d4b02773be08b68a5091ef.tar.bz2 lua-86dd8bf3f58f118003d4b02773be08b68a5091ef.zip | |
no more 'L' in macros "luai_num*" (several places that use those macros
cannot throw errors anyway...)
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 | } |
