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 | |
| 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')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/alloc.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 72c76bf9fb0..1d48a6ff155 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-06-02 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * alloc.c (CONS_BLOCK_SIZE): Account for padding at the end of | ||
| 4 | cons_block. | ||
| 5 | |||
| 1 | 2012-06-01 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-06-01 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * xfns.c (x_set_tool_bar_lines) [USE_GTK]: Adjust to bitfield change. | 8 | * xfns.c (x_set_tool_bar_lines) [USE_GTK]: Adjust to bitfield change. |
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) \ |