summaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-06-09 11:21:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-06-09 11:21:13 -0300
commitcbef15f3ea81a925abdcc11bf5870f3f0f1ce1cb (patch)
tree85602574c6e920e767b0053f67caa1818637ecc9 /ltable.c
parent16e8bb360bb9b26f501808cf3e738a636ee5f11e (diff)
downloadlua-cbef15f3ea81a925abdcc11bf5870f3f0f1ce1cb.tar.gz
lua-cbef15f3ea81a925abdcc11bf5870f3f0f1ce1cb.tar.bz2
lua-cbef15f3ea81a925abdcc11bf5870f3f0f1ce1cb.zip
comment (FALLTHROUGH position)
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltable.c b/ltable.c
index 4dc8ea4c..516eaa4c 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.109 2015/04/02 21:09:51 roberto Exp roberto $ 2** $Id: ltable.c,v 2.110 2015/05/20 16:22:30 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -551,8 +551,8 @@ const TValue *luaH_get (Table *t, const TValue *key) {
551 lua_Integer k; 551 lua_Integer k;
552 if (luaV_tointeger(key, &k, 0)) /* index is int? */ 552 if (luaV_tointeger(key, &k, 0)) /* index is int? */
553 return luaH_getint(t, k); /* use specialized version */ 553 return luaH_getint(t, k); /* use specialized version */
554 /* else *//* FALLTHROUGH */ 554 /* else... */
555 } 555 } /* FALLTHROUGH */
556 default: { 556 default: {
557 Node *n = mainposition(t, key); 557 Node *n = mainposition(t, key);
558 for (;;) { /* check whether 'key' is somewhere in the chain */ 558 for (;;) { /* check whether 'key' is somewhere in the chain */