From 74f1c3d025c6d8a714454470a953f383a1c6a641 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Feb 2000 14:39:42 -0200 Subject: small changes for "clean C" --- ltests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 320d5304..3dca88b7 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.5 2000/01/19 12:00:45 roberto Exp roberto $ +** $Id: ltests.c,v 1.6 2000/01/24 20:11:26 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -243,7 +243,7 @@ static void testC (lua_State *L) { lua_pushuserdata(L, L1); } else if EQ("closestate") { - lua_close(lua_getuserdata(L, reg[getreg(L, &pc)])); + lua_close((lua_State *)lua_getuserdata(L, reg[getreg(L, &pc)])); } else if EQ("doremote") { lua_Object ol1 = reg[getreg(L, &pc)]; @@ -253,7 +253,7 @@ static void testC (lua_State *L) { int i; if (!lua_isuserdata(L, ol1) || !lua_isstring(L, str)) lua_error(L, "bad arguments for `doremote'"); - L1 = lua_getuserdata(L, ol1); + L1 = (lua_State *)lua_getuserdata(L, ol1); lua_dostring(L1, lua_getstring(L, str)); i = 1; while ((temp = lua_getresult(L1, i++)) != LUA_NOOBJECT) -- cgit v1.2.3-55-g6feb