cleaner way to ensure alignment for strings and userdata
This commit is contained in:
4
ltable.c
4
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)])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user