diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-18 17:46:21 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-18 17:46:21 -0200 |
| commit | 333a4f13d084b99c3729414c9c2d66222a8a1fc7 (patch) | |
| tree | f5ecc29ad2a9c3a86250708b30a9afcefae5cbe4 /mathlib.c | |
| parent | 73664eb7399655e7cf65132c91a1aa16191a1667 (diff) | |
| download | lua-github-333a4f13d084b99c3729414c9c2d66222a8a1fc7.tar.gz | |
lua_lock receives its parameter via stack
Diffstat (limited to 'mathlib.c')
| -rw-r--r-- | mathlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ ** Mathematics library to LUA */ -char *rcs_mathlib="$Id: mathlib.c,v 1.4 1994/10/11 13:06:47 celes Exp roberto $"; +char *rcs_mathlib="$Id: mathlib.c,v 1.5 1994/11/17 19:43:34 roberto Exp roberto $"; #include <stdio.h> /* NULL */ #include <math.h> @@ -310,5 +310,5 @@ void mathlib_open (void) lua_register ("exp", math_exp); lua_register ("deg", math_deg); lua_register ("rad", math_rad); - old_pow = lua_lock(lua_setfallback("arith", math_pow)); + old_pow = lua_lockobject(lua_setfallback("arith", math_pow)); } |
