From f61d435a7d34a07c2edd51714ad6072916e40092 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 7 Jan 2005 18:00:33 -0200 Subject: a^b calls `pow´ (from math.h) directly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lmathlib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index 9da84f3e..4609e3b2 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.60 2004/04/30 20:13:38 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.61 2004/05/10 18:11:32 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -225,8 +225,6 @@ LUALIB_API int luaopen_math (lua_State *L) { luaL_openlib(L, LUA_MATHLIBNAME, mathlib, 0); lua_pushnumber(L, PI); lua_setfield(L, -2, "pi"); - lua_pushcfunction(L, math_pow); - lua_setglobal(L, "__pow"); return 1; } -- cgit v1.2.3-55-g6feb