extern int __malloc_extra_blocks;
#define max(A,B) ((A) > (B) ? (A) : (B))
+#define min(A,B) ((A) < (B) ? (A) : (B))
/* Macro to verify that storage intended for Lisp objects is not
out of range to fit in the space for a pointer.
int consing_since_gc;
/* Number of bytes of consing since gc before another gc should be done. */
-EMACS_INT gc_cons_threshold;
+int gc_cons_threshold;
/* Nonzero during gc */
int gc_in_progress;
{
int count = specpdl_ptr - specpdl;
Lisp_Object number;
+ int nbits = min (VALBITS, INTBITS);
- XSETINT (number, ((EMACS_INT) 1 << (VALBITS - 1)) - 1);
+ XSETINT (number, ((EMACS_INT) 1 << (nbits - 1)) - 1);
specbind (Qgc_cons_threshold, number);