浏览代码

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

Roberto Ierusalimschy 11 年之前
父节点
当前提交
3511e186cd
共有 1 个文件被更改,包括 2 次插入2 次删除
  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
 ** Internal Header for Debugging of the Lua Implementation
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -89,7 +89,7 @@ int luaB_opentests (lua_State *L);
 
 
 
 
 #undef LUAI_USER_ALIGNMENT_T
 #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
 #endif