diff options
Diffstat (limited to 'mathlib.c')
| -rw-r--r-- | mathlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Mathematics library to LUA | 3 | ** Mathematics library to LUA |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_mathlib="$Id: mathlib.c,v 1.20 1997/03/18 15:30:50 roberto Exp roberto $"; | 6 | char *rcs_mathlib="$Id: mathlib.c,v 1.21 1997/03/21 18:37:28 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
| 9 | #include <math.h> | 9 | #include <math.h> |
| @@ -210,6 +210,6 @@ static struct luaL_reg mathlib[] = { | |||
| 210 | void mathlib_open (void) | 210 | void mathlib_open (void) |
| 211 | { | 211 | { |
| 212 | luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); | 212 | luaL_openlib(mathlib, (sizeof(mathlib)/sizeof(mathlib[0]))); |
| 213 | lua_setintmethod(0, "pow", math_pow); | 213 | lua_settagmethod(0, "pow", math_pow); |
| 214 | } | 214 | } |
| 215 | 215 | ||
