diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-18 10:27:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-18 10:27:45 -0300 |
commit | 3511e186cde4b78f268d17199d0f46fb3eaa9638 (patch) | |
tree | c3b3e5b678f9a8ae30d4ecc000392f453102ed0a /ltests.h | |
parent | 56137d58ff7abe8cb22ee3469366e08888c84f28 (diff) | |
download | lua-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |