aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index 320d5304..3dca88b7 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.5 2000/01/19 12:00:45 roberto Exp roberto $ 2** $Id: ltests.c,v 1.6 2000/01/24 20:11:26 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -243,7 +243,7 @@ static void testC (lua_State *L) {
243 lua_pushuserdata(L, L1); 243 lua_pushuserdata(L, L1);
244 } 244 }
245 else if EQ("closestate") { 245 else if EQ("closestate") {
246 lua_close(lua_getuserdata(L, reg[getreg(L, &pc)])); 246 lua_close((lua_State *)lua_getuserdata(L, reg[getreg(L, &pc)]));
247 } 247 }
248 else if EQ("doremote") { 248 else if EQ("doremote") {
249 lua_Object ol1 = reg[getreg(L, &pc)]; 249 lua_Object ol1 = reg[getreg(L, &pc)];
@@ -253,7 +253,7 @@ static void testC (lua_State *L) {
253 int i; 253 int i;
254 if (!lua_isuserdata(L, ol1) || !lua_isstring(L, str)) 254 if (!lua_isuserdata(L, ol1) || !lua_isstring(L, str))
255 lua_error(L, "bad arguments for `doremote'"); 255 lua_error(L, "bad arguments for `doremote'");
256 L1 = lua_getuserdata(L, ol1); 256 L1 = (lua_State *)lua_getuserdata(L, ol1);
257 lua_dostring(L1, lua_getstring(L, str)); 257 lua_dostring(L1, lua_getstring(L, str));
258 i = 1; 258 i = 1;
259 while ((temp = lua_getresult(L1, i++)) != LUA_NOOBJECT) 259 while ((temp = lua_getresult(L1, i++)) != LUA_NOOBJECT)