aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorEli Zaretskii2013-04-05 16:10:57 +0300
committerEli Zaretskii2013-04-05 16:10:57 +0300
commiteb1dd42a729ab1b9cdcd278767951679480cd4c3 (patch)
tree7a9787eacf9fa495ad8f7caef59bb58a46fbe04a /src/alloc.c
parent86e9346005b957ddadb73586c9641e68ea12a79d (diff)
parent2a417372c4a06fe90c343bc59660268c7a5ac3e9 (diff)
downloademacs-eb1dd42a729ab1b9cdcd278767951679480cd4c3.tar.gz
emacs-eb1dd42a729ab1b9cdcd278767951679480cd4c3.zip
Merge from trunk.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 0a7950273f6..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;