lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 3511e186cde4b78f268d17199d0f46fb3eaa9638
parent 56137d58ff7abe8cb22ee3469366e08888c84f28
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri, 18 Jul 2014 10:27:20 -0300

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

Diffstat:
Mltests.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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