]> git.eshelyaron.com Git - emacs.git/commitdiff
(struct ablock): Only include padding when there is some.
authorJason Rumney <jasonr@gnu.org>
Sun, 6 Jul 2003 14:55:00 +0000 (14:55 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 6 Jul 2003 14:55:00 +0000 (14:55 +0000)
src/alloc.c

index 4ec3a1c3863a2801c0b7ffdc679364e8f77e254e..2232b7b82d27f0b110af96808a2b6f8a82723fcb 100644 (file)
@@ -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.  */