lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 6dd0b6c62bd0016f456676c335308ebdfe6ce05d
parent fa233012511e42740cb3ed12d553ad8f0a8e49d2
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed,  5 Jun 2002 13:58:59 -0300

details

Diffstat:
Mlbaselib.c | 4++--
Mltablib.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 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); diff --git a/ltablib.c b/ltablib.c @@ -1,5 +1,5 @@ /* -** $Id: ltablib.c,v 1.2 2002/04/12 19:57:29 roberto Exp roberto $ +** $Id: ltablib.c,v 1.3 2002/05/02 17:12:27 roberto Exp roberto $ ** Library for Table Manipulation ** See Copyright Notice in lua.h */ @@ -204,7 +204,7 @@ static int luaB_sort (lua_State *L) { int n; luaL_check_type(L, 1, LUA_TTABLE); n = lua_getn(L, 1); - if (!lua_isnone(L, 2)) /* is there a 2nd argument? */ + if (!lua_isnoneornil(L, 2)) /* is there a 2nd argument? */ luaL_check_type(L, 2, LUA_TFUNCTION); lua_settop(L, 2); /* make sure there is two arguments */ auxsort(L, 1, n);