diff options
Diffstat (limited to 'lmathlib.c')
-rw-r--r-- | lmathlib.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmathlib.c,v 1.68 2006/08/07 19:01:56 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.69 2007/03/27 12:37:00 roberto Exp roberto $ |
3 | ** Standard mathematical library | 3 | ** Standard mathematical library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -258,10 +258,6 @@ LUALIB_API int luaopen_math (lua_State *L) { | |||
258 | lua_setfield(L, -2, "pi"); | 258 | lua_setfield(L, -2, "pi"); |
259 | lua_pushnumber(L, HUGE_VAL); | 259 | lua_pushnumber(L, HUGE_VAL); |
260 | lua_setfield(L, -2, "huge"); | 260 | lua_setfield(L, -2, "huge"); |
261 | #if defined(LUA_COMPAT_MOD) | ||
262 | lua_getfield(L, -1, "fmod"); | ||
263 | lua_setfield(L, -2, "mod"); | ||
264 | #endif | ||
265 | return 1; | 261 | return 1; |
266 | } | 262 | } |
267 | 263 | ||