diff options
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** hash manager for lua | 3 | ** hash manager for lua |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_hash="$Id: hash.c,v 2.39 1997/03/31 14:17:09 roberto Exp roberto $"; | 6 | char *rcs_hash="$Id: hash.c,v 2.40 1997/04/04 15:35:37 roberto Exp roberto $"; |
7 | 7 | ||
8 | 8 | ||
9 | #include "luamem.h" | 9 | #include "luamem.h" |
@@ -302,8 +302,8 @@ void lua_next (void) | |||
302 | Hash *t; | 302 | Hash *t; |
303 | lua_Object o = lua_getparam(1); | 303 | lua_Object o = lua_getparam(1); |
304 | lua_Object r = lua_getparam(2); | 304 | lua_Object r = lua_getparam(2); |
305 | luaL_arg_check(lua_istable(o), "next", 1, "table expected"); | 305 | luaL_arg_check(lua_istable(o), 1, "table expected"); |
306 | luaL_arg_check(r != LUA_NOOBJECT, "next", 2, "value expected"); | 306 | luaL_arg_check(r != LUA_NOOBJECT, 2, "value expected"); |
307 | t = avalue(luaI_Address(o)); | 307 | t = avalue(luaI_Address(o)); |
308 | if (lua_isnil(r)) | 308 | if (lua_isnil(r)) |
309 | { | 309 | { |