Commit 7515a1d4 authored by Paul Eggert's avatar Paul Eggert

* src/alloc.c (VECTOR_ELTS_MAX): Make sure it’s signed.

parent fa4dd8dd
Pipeline #232 failed with stage
in 5 minutes and 12 seconds
......@@ -3340,9 +3340,10 @@ sweep_vectors (void)
can be used in an integer constant expression. */
#define VECTOR_ELTS_MAX \
min (((min (PTRDIFF_MAX, SIZE_MAX) - header_size - large_vector_offset) \
/ word_size), \
MOST_POSITIVE_FIXNUM)
((ptrdiff_t) \
min (((min (PTRDIFF_MAX, SIZE_MAX) - header_size - large_vector_offset) \
/ word_size), \
MOST_POSITIVE_FIXNUM))
/* Value is a pointer to a newly allocated Lisp_Vector structure
with room for LEN Lisp_Objects. LEN must be positive and
......
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