From 6dd0b6c62bd0016f456676c335308ebdfe6ce05d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 5 Jun 2002 13:59:21 -0300 Subject: details --- lbaselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 88c8db67..847b91ef 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.75 2002/05/16 19:09:19 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.76 2002/06/03 20:11:41 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -106,7 +106,7 @@ static int luaB_metatable (lua_State *L) { static int luaB_globals (lua_State *L) { lua_getglobals(L); /* value to be returned */ - if (!lua_isnone(L, 1)) { + if (!lua_isnoneornil(L, 1)) { luaL_check_type(L, 1, LUA_TTABLE); lua_pushvalue(L, 1); /* new table of globals */ lua_setglobals(L); -- cgit v1.2.3-55-g6feb