diff options
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -106,11 +106,7 @@ static lua_Number numarith (lua_State *L, int op, lua_Number v1, | |||
106 | case LUA_OPPOW: return luai_numpow(L, v1, v2); | 106 | case LUA_OPPOW: return luai_numpow(L, v1, v2); |
107 | case LUA_OPIDIV: return luai_numidiv(L, v1, v2); | 107 | case LUA_OPIDIV: return luai_numidiv(L, v1, v2); |
108 | case LUA_OPUNM: return luai_numunm(L, v1); | 108 | case LUA_OPUNM: return luai_numunm(L, v1); |
109 | case LUA_OPMOD: { | 109 | case LUA_OPMOD: return luaV_modf(L, v1, v2); |
110 | lua_Number m; | ||
111 | luai_nummod(L, v1, v2, m); | ||
112 | return m; | ||
113 | } | ||
114 | default: lua_assert(0); return 0; | 110 | default: lua_assert(0); return 0; |
115 | } | 111 | } |
116 | } | 112 | } |