Commit 54defd0d authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(inhibit_garbage_collection): Don't exceed value an int can hold.

parent 9d113d9d
......@@ -4012,7 +4012,9 @@ int
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment