From 67c1afff5917b118f3be818dd0df7448d19de877 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 31 Oct 2000 11:10:24 -0200 Subject: lua_settagmethod does not return old tag method --- lmathlib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index 19e0c5ac..0f08866a 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.30 2000/10/26 12:47:05 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.31 2000/10/27 16:15:53 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -232,7 +232,6 @@ LUALIB_API void lua_mathlibopen (lua_State *L) { luaL_openl(L, mathlib); lua_pushcfunction(L, math_pow); lua_settagmethod(L, LUA_TNUMBER, "pow"); - lua_pop(L, 1); /* remove result from previous call */ lua_pushnumber(L, PI); lua_setglobal(L, "PI"); } -- cgit v1.2.3-55-g6feb