From 8e586c13fcf3066886a7edd69011304eaad57a2b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 15 Jun 2001 17:36:57 -0300 Subject: cleaner way to ensure alignment for strings and userdata --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index c4a2c789..4a20bb23 100644 --- a/ltable.c +++ b/ltable.c @@ -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)]) -- cgit v1.2.3-55-g6feb