diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-04-28 16:26:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-04-28 16:26:16 -0300 |
commit | 572a69df78b2636642e9c520ebc8c1d2efa16afe (patch) | |
tree | 0e1e6f042e63f1d0e8aabc692692f2fcc42efb75 /ltable.c | |
parent | 943c82b37622bd2321d4fbb361d99f4495ceed2f (diff) | |
download | lua-572a69df78b2636642e9c520ebc8c1d2efa16afe.tar.gz lua-572a69df78b2636642e9c520ebc8c1d2efa16afe.tar.bz2 lua-572a69df78b2636642e9c520ebc8c1d2efa16afe.zip |
Lua does not need all those different types...
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 1.132 2003/04/03 13:35:34 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.133 2003/04/28 13:31:46 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 | */ |
@@ -85,7 +85,7 @@ static Node *hashnum (const Table *t, lua_Number n) { | |||
85 | lua_assert(sizeof(a) <= sizeof(n)); | 85 | lua_assert(sizeof(a) <= sizeof(n)); |
86 | memcpy(a, &n, sizeof(a)); | 86 | memcpy(a, &n, sizeof(a)); |
87 | for (i = 1; i < numints; i++) a[0] += a[i]; | 87 | for (i = 1; i < numints; i++) a[0] += a[i]; |
88 | return hashmod(t, cast(lu_hash, a[0])); | 88 | return hashmod(t, a[0]); |
89 | } | 89 | } |
90 | 90 | ||
91 | 91 | ||