From 87b0e3d477a8d4af32a2a200a2d8cb2c3aaa05a1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 8 Feb 2002 20:39:36 -0200 Subject: no more `lua_istrue' function --- lbaselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index f1a7b5ab..b561a52c 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -264,7 +264,7 @@ static int luaB_loadfile (lua_State *L) { static int luaB_assert (lua_State *L) { luaL_check_any(L, 1); - if (!lua_istrue(L, 1)) + if (!lua_toboolean(L, 1)) luaL_verror(L, "assertion failed! %.90s", luaL_opt_string(L, 2, "")); lua_settop(L, 1); return 1; @@ -569,7 +569,7 @@ static int sort_comp (lua_State *L, int a, int b) { lua_pushvalue(L, a-1); /* -1 to compensate function */ lua_pushvalue(L, b-2); /* -2 to compensate function and `a' */ lua_rawcall(L, 2, 1); - res = lua_istrue(L, -1); + res = lua_toboolean(L, -1); lua_pop(L, 1); return res; } -- cgit v1.2.3-55-g6feb