aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fallback.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fallback.c b/fallback.c
index a451f60a..385a1495 100644
--- a/fallback.c
+++ b/fallback.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_fallback="$Id: fallback.c,v 1.27 1997/03/11 18:44:28 roberto Exp roberto $"; 6char *rcs_fallback="$Id: fallback.c,v 1.28 1997/03/19 19:41:10 roberto Exp roberto $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <string.h> 9#include <string.h>
@@ -268,6 +268,7 @@ void luaI_setintmethod (void)
268 luaL_arg_check(lua_isnil(func) || lua_isfunction(func), "setintmethod", 268 luaL_arg_check(lua_isnil(func) || lua_isfunction(func), "setintmethod",
269 3, "function expected"); 269 3, "function expected");
270 checktag(t); 270 checktag(t);
271 luaI_pushobject(&luaI_IMtable[-t].int_method[e]);
271 luaI_IMtable[-t].int_method[e] = *luaI_Address(func); 272 luaI_IMtable[-t].int_method[e] = *luaI_Address(func);
272} 273}
273 274
@@ -286,6 +287,7 @@ void luaI_setglobalmethod (void)
286 lua_Object func = lua_getparam(2); 287 lua_Object func = lua_getparam(2);
287 luaL_arg_check(lua_isnil(func) || lua_isfunction(func), "setintmethod", 288 luaL_arg_check(lua_isnil(func) || lua_isfunction(func), "setintmethod",
288 2, "function expected"); 289 2, "function expected");
290 luaI_pushobject(&gmethod[e]);
289 gmethod[e] = *luaI_Address(func); 291 gmethod[e] = *luaI_Address(func);
290} 292}
291 293