cleaner way to ensure alignment for strings and userdata

This commit is contained in:
Roberto Ierusalimschy
2001-06-15 17:36:57 -03:00
parent eadf2aaaff
commit 8e586c13fc
12 changed files with 92 additions and 103 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltable.c,v 1.79 2001/04/11 14:42:41 roberto Exp roberto $
** $Id: ltable.c,v 1.80 2001/06/06 18:00:19 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -33,7 +33,7 @@
#define hashnum(t,n) (&t->node[lmod((lu_hash)(ls_hash)(n), t->size)])
#define hashstr(t,str) (&t->node[lmod((str)->hash, t->size)])
#define hashstr(t,str) (&t->node[lmod((str)->tsv.hash, t->size)])
#define hashpointer(t,p) (&t->node[lmod(IntPoint(p), t->size)])