# HG changeset patch # User Andreas Schwab # Date 1007728341 0 # Node ID a555c6419185428149bcf63adcc90f5e19dc7539 # Parent 6cba361d7666f23dd1eeba647ffa8e5bc90d788e (inhibit_garbage_collection): Don't exceed value an int can hold. diff -r 6cba361d7666 -r a555c6419185 src/alloc.c --- 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; }