This commit is contained in:
Roberto Ierusalimschy 1999-12-07 10:05:34 -02:00
parent b3fe203c36
commit 544eeb1f9c
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
** $Id: lbuiltin.c,v 1.81 1999/12/03 18:02:54 roberto Exp $
** $Id: lbuiltin.c,v 1.82 1999/12/06 11:42:18 roberto Exp roberto $
** Built-in functions
** See Copyright Notice in lua.h
*/
@ -624,7 +624,7 @@ static void hash_query (lua_State *L) {
}
else {
const Hash *t = avalue(luaL_tablearg(L, 2));
lua_pushnumber(L, luaH_mainposition(L, t, o) - t->node);
lua_pushnumber(L, luaH_mainposition(t, o) - t->node);
}
}

View File

@ -1,5 +1,5 @@
/*
** $Id: ltable.h,v 1.16 1999/11/22 13:12:07 roberto Exp roberto $
** $Id: ltable.h,v 1.17 1999/11/23 13:58:02 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@ -26,7 +26,7 @@ const TObject *luaH_getint (lua_State *L, const Hash *t, int key);
unsigned long luaH_hash (lua_State *L, const TObject *key);
/* exported only for debugging */
Node *luaH_mainposition (lua_State *L, const Hash *t, const TObject *key);
Node *luaH_mainposition (const Hash *t, const TObject *key);
#endif