aboutsummaryrefslogtreecommitdiff
path: root/mathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-18 17:46:21 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-18 17:46:21 -0200
commit333a4f13d084b99c3729414c9c2d66222a8a1fc7 (patch)
treef5ecc29ad2a9c3a86250708b30a9afcefae5cbe4 /mathlib.c
parent73664eb7399655e7cf65132c91a1aa16191a1667 (diff)
downloadlua-333a4f13d084b99c3729414c9c2d66222a8a1fc7.tar.gz
lua-333a4f13d084b99c3729414c9c2d66222a8a1fc7.tar.bz2
lua-333a4f13d084b99c3729414c9c2d66222a8a1fc7.zip
lua_lock receives its parameter via stack
Diffstat (limited to 'mathlib.c')
-rw-r--r--mathlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mathlib.c b/mathlib.c
index f0e84b98..4042834d 100644
--- a/mathlib.c
+++ b/mathlib.c
@@ -3,7 +3,7 @@
3** Mathematics library to LUA 3** Mathematics library to LUA
4*/ 4*/
5 5
6char *rcs_mathlib="$Id: mathlib.c,v 1.4 1994/10/11 13:06:47 celes Exp roberto $"; 6char *rcs_mathlib="$Id: mathlib.c,v 1.5 1994/11/17 19:43:34 roberto Exp roberto $";
7 7
8#include <stdio.h> /* NULL */ 8#include <stdio.h> /* NULL */
9#include <math.h> 9#include <math.h>
@@ -310,5 +310,5 @@ void mathlib_open (void)
310 lua_register ("exp", math_exp); 310 lua_register ("exp", math_exp);
311 lua_register ("deg", math_deg); 311 lua_register ("deg", math_deg);
312 lua_register ("rad", math_rad); 312 lua_register ("rad", math_rad);
313 old_pow = lua_lock(lua_setfallback("arith", math_pow)); 313 old_pow = lua_lockobject(lua_setfallback("arith", math_pow));
314} 314}