aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-05-09 11:39:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-05-09 11:39:46 -0300
commitb1b7790f7cf11708221aff37b4da816de97300fb (patch)
tree881a2d6a62e794b947bbda030fd6de4c221e77be /ltable.c
parentab5a6500296dbd847632ccc2fb43b44bba4c34f5 (diff)
downloadlua-b1b7790f7cf11708221aff37b4da816de97300fb.tar.gz
lua-b1b7790f7cf11708221aff37b4da816de97300fb.tar.bz2
lua-b1b7790f7cf11708221aff37b4da816de97300fb.zip
detail ('1' -> '1u' in unsigned operation)
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index 92c165ad..1f09369a 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.117 2015/11/19 19:16:22 roberto Exp roberto $ 2** $Id: ltable.c,v 2.118 2016/11/07 12:38:35 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*/
@@ -496,7 +496,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) {
496*/ 496*/
497const TValue *luaH_getint (Table *t, lua_Integer key) { 497const TValue *luaH_getint (Table *t, lua_Integer key) {
498 /* (1 <= key && key <= t->sizearray) */ 498 /* (1 <= key && key <= t->sizearray) */
499 if (l_castS2U(key) - 1 < t->sizearray) 499 if (l_castS2U(key) - 1u < t->sizearray)
500 return &t->array[key - 1]; 500 return &t->array[key - 1];
501 else { 501 else {
502 Node *n = hashint(t, key); 502 Node *n = hashint(t, key);