1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

ensure size for LUAI_USER_ALIGNMENT_T in tests is larger than the

structures it is aligning (in most architectures)
This commit is contained in:
Roberto Ierusalimschy
2014-07-18 10:27:45 -03:00
parent 56137d58ff
commit 3511e186cd
+2 -2
View File
@@ -1,5 +1,5 @@
/*
** $Id: ltests.h,v 2.33 2010/07/28 15:51:59 roberto Exp roberto $
** $Id: ltests.h,v 2.34 2013/11/08 17:36:05 roberto Exp roberto $
** Internal Header for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -89,7 +89,7 @@ int luaB_opentests (lua_State *L);
#undef LUAI_USER_ALIGNMENT_T
#define LUAI_USER_ALIGNMENT_T union { char b[32]; }
#define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; }
#endif