mirror of https://github.com/rusefi/lua.git
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)
|
** Lua tables (hash)
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -551,8 +551,8 @@ const TValue *luaH_get (Table *t, const TValue *key) {
|
||||||
lua_Integer k;
|
lua_Integer k;
|
||||||
if (luaV_tointeger(key, &k, 0)) /* index is int? */
|
if (luaV_tointeger(key, &k, 0)) /* index is int? */
|
||||||
return luaH_getint(t, k); /* use specialized version */
|
return luaH_getint(t, k); /* use specialized version */
|
||||||
/* else *//* FALLTHROUGH */
|
/* else... */
|
||||||
}
|
} /* FALLTHROUGH */
|
||||||
default: {
|
default: {
|
||||||
Node *n = mainposition(t, key);
|
Node *n = mainposition(t, key);
|
||||||
for (;;) { /* check whether 'key' is somewhere in the chain */
|
for (;;) { /* check whether 'key' is somewhere in the chain */
|
||||||
|
|
Loading…
Reference in New Issue