diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-01-18 09:49:12 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-01-18 09:49:12 -0200 |
commit | baffc37f5c8d15c03da0ce689bdecadc1219fe99 (patch) | |
tree | e49318b4c37647d5d1b5dbfd857b01d7d94d44c3 /ltable.c | |
parent | 440113bbe8c44b160e11ee47f9b3b322ed1441fb (diff) | |
download | lua-baffc37f5c8d15c03da0ce689bdecadc1219fe99.tar.gz lua-baffc37f5c8d15c03da0ce689bdecadc1219fe99.tar.bz2 lua-baffc37f5c8d15c03da0ce689bdecadc1219fe99.zip |
detail
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.30 2006/01/10 12:51:53 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.31 2006/01/10 13:13:06 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 | */ |
@@ -122,7 +122,7 @@ static int arrayindex (const TValue *key) { | |||
122 | lua_Number n = nvalue(key); | 122 | lua_Number n = nvalue(key); |
123 | int k; | 123 | int k; |
124 | lua_number2int(k, n); | 124 | lua_number2int(k, n); |
125 | if (luai_numeq(cast_num(k), nvalue(key))) | 125 | if (luai_numeq(cast_num(k), n)) |
126 | return k; | 126 | return k; |
127 | } | 127 | } |
128 | return -1; /* `key' did not match some condition */ | 128 | return -1; /* `key' did not match some condition */ |