diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-31 11:10:24 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-31 11:10:24 -0200 |
commit | 67c1afff5917b118f3be818dd0df7448d19de877 (patch) | |
tree | 10b60153e85947af9a1791148b145e0dca82775d /lmathlib.c | |
parent | 03770ecfc91718f7a208995adb1f9fd5d8e0c85e (diff) | |
download | lua-67c1afff5917b118f3be818dd0df7448d19de877.tar.gz lua-67c1afff5917b118f3be818dd0df7448d19de877.tar.bz2 lua-67c1afff5917b118f3be818dd0df7448d19de877.zip |
lua_settagmethod does not return old tag method
Diffstat (limited to 'lmathlib.c')
-rw-r--r-- | lmathlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmathlib.c,v 1.30 2000/10/26 12:47:05 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.31 2000/10/27 16:15:53 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 | */ |
@@ -232,7 +232,6 @@ LUALIB_API void lua_mathlibopen (lua_State *L) { | |||
232 | luaL_openl(L, mathlib); | 232 | luaL_openl(L, mathlib); |
233 | lua_pushcfunction(L, math_pow); | 233 | lua_pushcfunction(L, math_pow); |
234 | lua_settagmethod(L, LUA_TNUMBER, "pow"); | 234 | lua_settagmethod(L, LUA_TNUMBER, "pow"); |
235 | lua_pop(L, 1); /* remove result from previous call */ | ||
236 | lua_pushnumber(L, PI); | 235 | lua_pushnumber(L, PI); |
237 | lua_setglobal(L, "PI"); | 236 | lua_setglobal(L, "PI"); |
238 | } | 237 | } |