aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-18 10:27:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-18 10:27:45 -0300
commit3511e186cde4b78f268d17199d0f46fb3eaa9638 (patch)
treec3b3e5b678f9a8ae30d4ecc000392f453102ed0a /ltests.h
parent56137d58ff7abe8cb22ee3469366e08888c84f28 (diff)
downloadlua-3511e186cde4b78f268d17199d0f46fb3eaa9638.tar.gz
lua-3511e186cde4b78f268d17199d0f46fb3eaa9638.tar.bz2
lua-3511e186cde4b78f268d17199d0f46fb3eaa9638.zip
ensure size for LUAI_USER_ALIGNMENT_T in tests is larger than the
structures it is aligning (in most architectures)
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.h b/ltests.h
index e61c59b2..3c86a8f8 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 2.33 2010/07/28 15:51:59 roberto Exp roberto $ 2** $Id: ltests.h,v 2.34 2013/11/08 17:36:05 roberto Exp roberto $
3** Internal Header for Debugging of the Lua Implementation 3** Internal Header for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -89,7 +89,7 @@ int luaB_opentests (lua_State *L);
89 89
90 90
91#undef LUAI_USER_ALIGNMENT_T 91#undef LUAI_USER_ALIGNMENT_T
92#define LUAI_USER_ALIGNMENT_T union { char b[32]; } 92#define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; }
93 93
94 94
95#endif 95#endif