From 9e613b85838f044327b3735c1ff66b98a1a3567e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 16 Mar 2009 13:30:50 -0300 Subject: missing argument to 'assert' raises "assertion failed" error --- lbaselib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index de4d176b..f82ac840 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.211 2009/03/10 17:14:37 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.212 2009/03/13 15:50:03 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -364,7 +364,6 @@ static int luaB_dofile (lua_State *L) { static int luaB_assert (lua_State *L) { - luaL_checkany(L, 1); if (!lua_toboolean(L, 1)) return luaL_error(L, "%s", luaL_optstring(L, 2, "assertion failed!")); return lua_gettop(L); -- cgit v1.2.3-55-g6feb