mirror of
https://github.com/lua/lua
synced 2025-03-22 21:52:58 +03:00
comment (FALLTHROUGH position)
This commit is contained in:
parent
16e8bb360b
commit
cbef15f3ea
6
ltable.c
6
ltable.c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: ltable.c,v 2.109 2015/04/02 21:09:51 roberto Exp roberto $
|
||||
** $Id: ltable.c,v 2.110 2015/05/20 16:22:30 roberto Exp roberto $
|
||||
** Lua tables (hash)
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -551,8 +551,8 @@ const TValue *luaH_get (Table *t, const TValue *key) {
|
||||
lua_Integer k;
|
||||
if (luaV_tointeger(key, &k, 0)) /* index is int? */
|
||||
return luaH_getint(t, k); /* use specialized version */
|
||||
/* else *//* FALLTHROUGH */
|
||||
}
|
||||
/* else... */
|
||||
} /* FALLTHROUGH */
|
||||
default: {
|
||||
Node *n = mainposition(t, key);
|
||||
for (;;) { /* check whether 'key' is somewhere in the chain */
|
||||
|
Loading…
x
Reference in New Issue
Block a user