diff options
| -rw-r--r-- | lbaselib.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbaselib.c,v 1.211 2009/03/10 17:14:37 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.212 2009/03/13 15:50:03 roberto Exp roberto $ |
| 3 | ** Basic library | 3 | ** Basic library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -364,7 +364,6 @@ static int luaB_dofile (lua_State *L) { | |||
| 364 | 364 | ||
| 365 | 365 | ||
| 366 | static int luaB_assert (lua_State *L) { | 366 | static int luaB_assert (lua_State *L) { |
| 367 | luaL_checkany(L, 1); | ||
| 368 | if (!lua_toboolean(L, 1)) | 367 | if (!lua_toboolean(L, 1)) |
| 369 | return luaL_error(L, "%s", luaL_optstring(L, 2, "assertion failed!")); | 368 | return luaL_error(L, "%s", luaL_optstring(L, 2, "assertion failed!")); |
| 370 | return lua_gettop(L); | 369 | return lua_gettop(L); |
