lua

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

commit 190c3be739b0dd9134070555c6c11b8d2f2a7629
parent 7e30900def8b01df28464477b943aab65f5637c6
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 31 May 2000 13:53:08 -0300

details

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

diff --git a/lmem.c b/lmem.c @@ -1,5 +1,5 @@ /* -** $Id: lmem.c,v 1.30 2000/05/24 13:54:49 roberto Exp roberto $ +** $Id: lmem.c,v 1.31 2000/05/29 14:48:03 roberto Exp roberto $ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ @@ -46,7 +46,7 @@ /* ensures maximum alignment for HEADER */ -#define HEADER (sizeof(double)>sizeof(long) ? sizeof(double) : sizeof(long)) +#define HEADER (sizeof(union { double d; char *s; long l; })) #define MARKSIZE 16 #define MARK 0x55 /* 01010101 (a nice pattern) */