From f0b3cd1d6f35ba34091450d5e3057269114a17b6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 31 Aug 2000 17:23:40 -0300 Subject: new API functions `pop', `insert', and `move' --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index d6957e76..ca14ee8c 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.26 2000/08/09 19:16:57 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.27 2000/08/28 17:57:04 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -233,7 +233,7 @@ void lua_mathlibopen (lua_State *L) { lua_pushnumber(L, 0); /* to get its tag */ lua_pushcfunction(L, math_pow); lua_settagmethod(L, lua_tag(L, -2), "pow"); - lua_settop(L, -1); /* remove number */ + lua_pop(L, 1); /* remove number */ lua_pushnumber(L, PI); lua_setglobal(L, "PI"); } -- cgit v1.2.3-55-g6feb