From 42fa305649199712aad1c96beadb944b01277e3f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 4 Apr 1997 19:24:51 -0300 Subject: better error messages; better names for some API functions. --- mathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mathlib.c') diff --git a/mathlib.c b/mathlib.c index 16d2a815..7a74fe14 100644 --- a/mathlib.c +++ b/mathlib.c @@ -3,7 +3,7 @@ ** Mathematics library to LUA */ -char *rcs_mathlib="$Id: mathlib.c,v 1.20 1997/03/18 15:30:50 roberto Exp roberto $"; +char *rcs_mathlib="$Id: mathlib.c,v 1.21 1997/03/21 18:37:28 roberto Exp roberto $"; #include #include @@ -210,6 +210,6 @@ static struct luaL_reg mathlib[] = { void mathlib_open (void) { luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); - lua_setintmethod(0, "pow", math_pow); + lua_settagmethod(0, "pow", math_pow); } -- cgit v1.2.3-55-g6feb