From b1b7790f7cf11708221aff37b4da816de97300fb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 9 May 2017 11:39:46 -0300 Subject: detail ('1' -> '1u' in unsigned operation) --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 92c165ad..1f09369a 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 2.117 2015/11/19 19:16:22 roberto Exp roberto $ +** $Id: ltable.c,v 2.118 2016/11/07 12:38:35 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -496,7 +496,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) { */ const TValue *luaH_getint (Table *t, lua_Integer key) { /* (1 <= key && key <= t->sizearray) */ - if (l_castS2U(key) - 1 < t->sizearray) + if (l_castS2U(key) - 1u < t->sizearray) return &t->array[key - 1]; else { Node *n = hashint(t, key); -- cgit v1.2.3-55-g6feb