From 1d99a7360beaf1a50a3739413b1ad6ed4b71491d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 24 Nov 2004 17:16:03 -0200 Subject: details --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 968b8395..a55b510d 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 2.7 2004/10/06 18:34:16 roberto Exp roberto $ +** $Id: ltable.c,v 2.8 2004/11/24 18:55:42 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -393,7 +393,7 @@ static TValue *newkey (lua_State *L, Table *t, const TValue *key) { */ const TValue *luaH_getnum (Table *t, int key) { /* (1 <= key && key <= t->sizearray) */ - if ((unsigned int)(key-1) < (unsigned int)t->sizearray) + if (cast(unsigned int, key-1) < cast(unsigned int, t->sizearray)) return &t->array[key-1]; else { lua_Number nk = cast(lua_Number, key); -- cgit v1.2.3-55-g6feb