aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-05 13:59:21 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-05 13:59:21 -0300
commit6dd0b6c62bd0016f456676c335308ebdfe6ce05d (patch)
treed3aff12bea204d33ade6e3481206ecffc8720f4c /lbaselib.c
parentfa233012511e42740cb3ed12d553ad8f0a8e49d2 (diff)
downloadlua-6dd0b6c62bd0016f456676c335308ebdfe6ce05d.tar.gz
lua-6dd0b6c62bd0016f456676c335308ebdfe6ce05d.tar.bz2
lua-6dd0b6c62bd0016f456676c335308ebdfe6ce05d.zip
details
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 88c8db67..847b91ef 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.75 2002/05/16 19:09:19 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.76 2002/06/03 20:11:41 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*/
@@ -106,7 +106,7 @@ static int luaB_metatable (lua_State *L) {
106 106
107static int luaB_globals (lua_State *L) { 107static int luaB_globals (lua_State *L) {
108 lua_getglobals(L); /* value to be returned */ 108 lua_getglobals(L); /* value to be returned */
109 if (!lua_isnone(L, 1)) { 109 if (!lua_isnoneornil(L, 1)) {
110 luaL_check_type(L, 1, LUA_TTABLE); 110 luaL_check_type(L, 1, LUA_TTABLE);
111 lua_pushvalue(L, 1); /* new table of globals */ 111 lua_pushvalue(L, 1); /* new table of globals */
112 lua_setglobals(L); 112 lua_setglobals(L);