From ebb8d410538fd1704ecc15c18fa27f610042eed2 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sun, 6 Jul 2003 14:55:00 +0000 Subject: [PATCH] (struct ablock): Only include padding when there is some. --- src/alloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index 4ec3a1c3863..2232b7b82d2 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -645,7 +645,7 @@ lisp_free (block) /* BLOCK_ALIGN has to be a power of 2. */ #define BLOCK_ALIGN (1 << 10) #define BLOCK_BYTES \ - (BLOCK_ALIGN - sizeof (struct aligned_block *) - ABLOCKS_PADDING) + (BLOCK_ALIGN - sizeof (struct alinged_block *) - ABLOCKS_PADDING) /* Internal data structures and constants. */ @@ -676,7 +676,9 @@ struct ablock struct ablocks *abase; /* The padding of all but the last ablock is unused. The padding of the last ablock in an ablocks is not allocated. */ +#if ABLOCKS_PADDING char padding[ABLOCKS_PADDING]; +#endif }; /* A bunch of consecutive aligned blocks. */ -- 2.39.2