Commit ebb8d410 authored by Jason Rumney's avatar Jason Rumney
Browse files

(struct ablock): Only include padding when there is some.

parent 1d660eca
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment