summaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-12-20 08:26:33 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-12-20 08:26:33 -0200
commit32fd039bb563b24cbe4621dcc9b3cc18d9e078b0 (patch)
tree381804f8030b6d1d09b5cc35bd46511d7dc29739 /lmathlib.c
parent75f73172c463af9643bc187eed7f1fd195238078 (diff)
downloadlua-32fd039bb563b24cbe4621dcc9b3cc18d9e078b0.tar.gz
lua-32fd039bb563b24cbe4621dcc9b3cc18d9e078b0.tar.bz2
lua-32fd039bb563b24cbe4621dcc9b3cc18d9e078b0.zip
`openlib' functions return new module
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 ce8b04c3..3a6420c4 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.52 2002/11/14 15:41:38 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.53 2002/12/04 17:38:31 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*/
@@ -241,6 +241,6 @@ LUALIB_API int lua_mathlibopen (lua_State *L) {
241 lua_pushliteral(L, "__pow"); 241 lua_pushliteral(L, "__pow");
242 lua_pushcfunction(L, math_pow); 242 lua_pushcfunction(L, math_pow);
243 lua_settable(L, LUA_REGISTRYINDEX); 243 lua_settable(L, LUA_REGISTRYINDEX);
244 return 0; 244 return 1;
245} 245}
246 246