diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.106 2002/11/14 12:01:35 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.107 2002/11/14 15:41:38 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 | */ |
@@ -396,7 +396,7 @@ static int luaB_newproxy (lua_State *L) { | |||
396 | validproxy = lua_toboolean(L, -1); | 396 | validproxy = lua_toboolean(L, -1); |
397 | lua_pop(L, 1); /* remove value */ | 397 | lua_pop(L, 1); /* remove value */ |
398 | } | 398 | } |
399 | luaL_argcheck(L, validproxy, 1, "boolean/proxy expected"); | 399 | luaL_argcheck(L, validproxy, 1, "boolean or proxy expected"); |
400 | lua_getmetatable(L, 1); /* metatable is valid; get it */ | 400 | lua_getmetatable(L, 1); /* metatable is valid; get it */ |
401 | } | 401 | } |
402 | lua_setmetatable(L, 2); | 402 | lua_setmetatable(L, 2); |
@@ -563,7 +563,7 @@ static int auxresume (lua_State *L, lua_State *co, int narg) { | |||
563 | static int luaB_coresume (lua_State *L) { | 563 | static int luaB_coresume (lua_State *L) { |
564 | lua_State *co = lua_tothread(L, 1); | 564 | lua_State *co = lua_tothread(L, 1); |
565 | int r; | 565 | int r; |
566 | luaL_argcheck(L, co, 1, "coroutine/thread expected"); | 566 | luaL_argcheck(L, co, 1, "coroutine expected"); |
567 | r = auxresume(L, co, lua_gettop(L) - 1); | 567 | r = auxresume(L, co, lua_gettop(L) - 1); |
568 | if (r < 0) { | 568 | if (r < 0) { |
569 | lua_pushboolean(L, 0); | 569 | lua_pushboolean(L, 0); |