summaryrefslogtreecommitdiff
path: root/src/ltable.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2006-01-24 12:00:00 +0000
committerrepogen <>2006-01-24 12:00:00 +0000
commitb487a3dce43e449acf3852ec56345e2860cfeab7 (patch)
tree5aa380efa69c039aafa812cf9edeb432bf27a885 /src/ltable.c
parent4f266285f998d0d14c4e83cc29772f0de1a7fbba (diff)
downloadlua-github-5.1-rc2.tar.gz
Lua 5.1-rc25.1-rc2
Diffstat (limited to 'src/ltable.c')
-rw-r--r--src/ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ltable.c b/src/ltable.c
index 029cd506..bc91cacd 100644
--- a/src/ltable.c
+++ b/src/ltable.c
@@ -1,5 +1,5 @@
/*
-** $Id: ltable.c,v 2.31 2006/01/10 13:13:06 roberto Exp $
+** $Id: ltable.c,v 2.32 2006/01/18 11:49:02 roberto Exp $
** 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 */