Lua does not need all those different types...

This commit is contained in:
Roberto Ierusalimschy
2003-04-28 16:26:16 -03:00
parent 943c82b376
commit 572a69df78
6 changed files with 32 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltable.c,v 1.132 2003/04/03 13:35:34 roberto Exp roberto $
** $Id: ltable.c,v 1.133 2003/04/28 13:31:46 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -85,7 +85,7 @@ static Node *hashnum (const Table *t, lua_Number n) {
lua_assert(sizeof(a) <= sizeof(n));
memcpy(a, &n, sizeof(a));
for (i = 1; i < numints; i++) a[0] += a[i];
return hashmod(t, cast(lu_hash, a[0]));
return hashmod(t, a[0]);
}