Mercurial > emacs
changeset 41867:a555c6419185
(inhibit_garbage_collection): Don't exceed value an int can hold.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Fri, 07 Dec 2001 12:32:21 +0000 |
parents | 6cba361d7666 |
children | 8e17610315d3 |
files | src/alloc.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloc.c Fri Dec 07 12:15:35 2001 +0000 +++ b/src/alloc.c Fri Dec 07 12:32:21 2001 +0000 @@ -4012,7 +4012,9 @@ inhibit_garbage_collection () { int count = specpdl_ptr - specpdl; - specbind (Qgc_cons_threshold, make_number (MOST_POSITIVE_FIXNUM)); + int nbits = min (VALBITS, BITS_PER_INT); + + specbind (Qgc_cons_threshold, make_number (((EMACS_INT) 1 << (nbits - 1)) - 1)); return count; }