mathlib now uses i.m. for "pow" operator.

This commit is contained in:
Roberto Ierusalimschy
1997-03-21 15:37:28 -03:00
parent 052a1cc46c
commit 6fef372fb8
2 changed files with 7 additions and 23 deletions

View File

@@ -3,7 +3,7 @@
** TecCGraf - PUC-Rio
*/
char *rcs_fallback="$Id: fallback.c,v 1.30 1997/03/20 19:20:43 roberto Exp roberto $";
char *rcs_fallback="$Id: fallback.c,v 1.31 1997/03/20 20:36:19 roberto Exp roberto $";
#include <stdio.h>
#include <string.h>
@@ -351,7 +351,7 @@ void luaI_setfallback (void)
}
else if (strcmp(name, "arith") == 0) { /* old arith fallback */
int i;
oldfunc = luaI_IMtable[LUA_T_USERDATA].int_method[IM_ADD];
oldfunc = luaI_IMtable[LUA_T_USERDATA].int_method[IM_POW];
for (i=IM_ADD; i<=IM_UNM; i++) /* ORDER IM */
fillvalids(i, luaI_Address(func));
replace = typeFB;