From 3511e186cde4b78f268d17199d0f46fb3eaa9638 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 18 Jul 2014 10:27:45 -0300 Subject: [PATCH] ensure size for LUAI_USER_ALIGNMENT_T in tests is larger than the structures it is aligning (in most architectures) --- ltests.h | 4 ++-- 1 file 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 @@ /* -** $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