diff options
| author | Joakim Verona | 2013-04-09 00:21:04 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-04-09 00:21:04 +0200 |
| commit | e25d341cec1ebaee2b96d627d99d4d7b92dee6b0 (patch) | |
| tree | a837c08c8ff2a6054964bd73469f6386368300e7 /src/alloc.c | |
| parent | 9639da1e26683b6a54d255bb07a24dd6e0fae354 (diff) | |
| parent | 6fcdab68b3e73354fb17f4c8c4f8199d6f63cf30 (diff) | |
| download | emacs-e25d341cec1ebaee2b96d627d99d4d7b92dee6b0.tar.gz emacs-e25d341cec1ebaee2b96d627d99d4d7b92dee6b0.zip | |
xdisp fix
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index ea833c62b94..7a56c78e2ba 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -779,7 +779,7 @@ xpalloc (void *pa, ptrdiff_t *nitems, ptrdiff_t nitems_incr_min, | |||
| 779 | ptrdiff_t nitems_incr_max = n_max - n; | 779 | ptrdiff_t nitems_incr_max = n_max - n; |
| 780 | ptrdiff_t incr = max (nitems_incr_min, min (incr_estimate, nitems_incr_max)); | 780 | ptrdiff_t incr = max (nitems_incr_min, min (incr_estimate, nitems_incr_max)); |
| 781 | 781 | ||
| 782 | eassert (item_size > 0 && nitems_incr_min > 0 && n >= 0 && nitems_max >= -1); | 782 | eassert (0 < item_size && 0 < nitems_incr_min && 0 <= n && -1 <= nitems_max); |
| 783 | if (! pa) | 783 | if (! pa) |
| 784 | *nitems = 0; | 784 | *nitems = 0; |
| 785 | if (nitems_incr_max < incr) | 785 | if (nitems_incr_max < incr) |
| @@ -5376,7 +5376,7 @@ See Info node `(elisp)Garbage Collection'. */) | |||
| 5376 | double tot = total_bytes_of_live_objects (); | 5376 | double tot = total_bytes_of_live_objects (); |
| 5377 | 5377 | ||
| 5378 | tot *= XFLOAT_DATA (Vgc_cons_percentage); | 5378 | tot *= XFLOAT_DATA (Vgc_cons_percentage); |
| 5379 | if (tot > 0) | 5379 | if (0 < tot) |
| 5380 | { | 5380 | { |
| 5381 | if (tot < TYPE_MAXIMUM (EMACS_INT)) | 5381 | if (tot < TYPE_MAXIMUM (EMACS_INT)) |
| 5382 | gc_relative_threshold = tot; | 5382 | gc_relative_threshold = tot; |
| @@ -5810,14 +5810,13 @@ mark_object (Lisp_Object arg) | |||
| 5810 | case PVEC_WINDOW: | 5810 | case PVEC_WINDOW: |
| 5811 | { | 5811 | { |
| 5812 | struct window *w = (struct window *) ptr; | 5812 | struct window *w = (struct window *) ptr; |
| 5813 | bool leaf = NILP (w->hchild) && NILP (w->vchild); | ||
| 5814 | 5813 | ||
| 5815 | mark_vectorlike (ptr); | 5814 | mark_vectorlike (ptr); |
| 5816 | 5815 | ||
| 5817 | /* Mark glyphs for leaf windows. Marking window | 5816 | /* Mark glyph matrices, if any. Marking window |
| 5818 | matrices is sufficient because frame matrices | 5817 | matrices is sufficient because frame matrices |
| 5819 | use the same glyph memory. */ | 5818 | use the same glyph memory. */ |
| 5820 | if (leaf && w->current_matrix) | 5819 | if (w->current_matrix) |
| 5821 | { | 5820 | { |
| 5822 | mark_glyph_matrix (w->current_matrix); | 5821 | mark_glyph_matrix (w->current_matrix); |
| 5823 | mark_glyph_matrix (w->desired_matrix); | 5822 | mark_glyph_matrix (w->desired_matrix); |