summaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-11 09:30:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-11 09:30:37 -0300
commit4039bf457db730caa9f3b3ceba391fa41b516def (patch)
tree8f291a0710390cb6885e126c56e30aa088d2f197 /lmathlib.c
parent034de1fe73c24dcb75658b4c9ab16dd012ba3057 (diff)
downloadlua-github-4039bf457db730caa9f3b3ceba391fa41b516def.tar.gz
^ operator is defined by global `__pow'
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmathlib.c b/lmathlib.c
index b1a70959..a4fa618c 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
/*
-** $Id: lmathlib.c,v 1.54 2002/12/20 10:26:33 roberto Exp roberto $
+** $Id: lmathlib.c,v 1.55 2003/03/11 12:24:34 roberto Exp roberto $
** Standard mathematical library
** See Copyright Notice in lua.h
*/
@@ -240,7 +240,7 @@ LUALIB_API int luaopen_math (lua_State *L) {
lua_settable(L, -3);
lua_pushliteral(L, "__pow");
lua_pushcfunction(L, math_pow);
- lua_settable(L, LUA_REGISTRYINDEX);
+ lua_settable(L, LUA_GLOBALSINDEX);
return 1;
}