From baffc37f5c8d15c03da0ce689bdecadc1219fe99 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy <roberto@inf.puc-rio.br> Date: Wed, 18 Jan 2006 09:49:12 -0200 Subject: detail --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 0e80237c..b68d1486 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 2.30 2006/01/10 12:51:53 roberto Exp roberto $ +** $Id: ltable.c,v 2.31 2006/01/10 13:13:06 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -122,7 +122,7 @@ static int arrayindex (const TValue *key) { lua_Number n = nvalue(key); int k; lua_number2int(k, n); - if (luai_numeq(cast_num(k), nvalue(key))) + if (luai_numeq(cast_num(k), n)) return k; } return -1; /* `key' did not match some condition */ -- cgit v1.2.3-55-g6feb