aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lmathlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lmathlib.c b/lmathlib.c
index c62b88c4..181ee8d4 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.9 1998/05/27 19:09:39 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.10 1998/06/19 16:14:09 roberto Exp roberto $
3** Lua standard mathematical library 3** Lua standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -204,7 +204,6 @@ static struct luaL_reg mathlib[] = {
204void lua_mathlibopen (void) 204void lua_mathlibopen (void)
205{ 205{
206 luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); 206 luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0])));
207 lua_pushstring("deg"); lua_setglobal("_TRIGMODE");
208 lua_pushcfunction(math_pow); 207 lua_pushcfunction(math_pow);
209 lua_pushnumber(0); /* to get its tag */ 208 lua_pushnumber(0); /* to get its tag */
210 lua_settagmethod(lua_tag(lua_pop()), "pow"); 209 lua_settagmethod(lua_tag(lua_pop()), "pow");