Browse Source

ensure size for LUAI_USER_ALIGNMENT_T in tests is larger than the
structures it is aligning (in most architectures)

Roberto Ierusalimschy 11 years ago
parent
commit
3511e186cd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ltests.h

+ 2 - 2
ltests.h

@@ -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