diff options
| author | Andreas Schwab | 2012-06-02 10:52:27 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2012-06-02 10:52:27 +0200 |
| commit | a282161184c51eba3381b257f2fe2939b79cd576 (patch) | |
| tree | 1b47768e693c9d4812393647b415d7a7818d18ea /src/alloc.c | |
| parent | 95f520b52b2169527063b9487a9471ac615316e6 (diff) | |
| download | emacs-a282161184c51eba3381b257f2fe2939b79cd576.tar.gz emacs-a282161184c51eba3381b257f2fe2939b79cd576.zip | |
* alloc.c (CONS_BLOCK_SIZE): Account for padding at the end of
cons_block.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index cf7778c05f6..7c461c5a6af 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2701,8 +2701,10 @@ make_float (double float_value) | |||
| 2701 | GC are put on a free list to be reallocated before allocating | 2701 | GC are put on a free list to be reallocated before allocating |
| 2702 | any new cons cells from the latest cons_block. */ | 2702 | any new cons cells from the latest cons_block. */ |
| 2703 | 2703 | ||
| 2704 | #define CONS_BLOCK_SIZE \ | 2704 | #define CONS_BLOCK_SIZE \ |
| 2705 | (((BLOCK_BYTES - sizeof (struct cons_block *)) * CHAR_BIT) \ | 2705 | (((BLOCK_BYTES - sizeof (struct cons_block *) \ |
| 2706 | /* The compiler might add padding at the end. */ \ | ||
| 2707 | - (sizeof (struct Lisp_Cons) - sizeof (int))) * CHAR_BIT) \ | ||
| 2706 | / (sizeof (struct Lisp_Cons) * CHAR_BIT + 1)) | 2708 | / (sizeof (struct Lisp_Cons) * CHAR_BIT + 1)) |
| 2707 | 2709 | ||
| 2708 | #define CONS_BLOCK(fptr) \ | 2710 | #define CONS_BLOCK(fptr) \ |