aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2018-12-08 22:59:50 -0800
committerPaul Eggert2018-12-08 23:00:18 -0800
commit7515a1d493f8f0f6f009b50c99cc5e27824bd6b3 (patch)
treeedb0c8dcea6a31835d6edbc7e694d6702e4cc385 /src/alloc.c
parentfa4dd8dd01b87b751abd74408ddd581263d6b839 (diff)
downloademacs-7515a1d493f8f0f6f009b50c99cc5e27824bd6b3.tar.gz
emacs-7515a1d493f8f0f6f009b50c99cc5e27824bd6b3.zip
* src/alloc.c (VECTOR_ELTS_MAX): Make sure it’s signed.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c
index d34b34f27d8..201e3f0b13f 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3340,9 +3340,10 @@ sweep_vectors (void)
3340 can be used in an integer constant expression. */ 3340 can be used in an integer constant expression. */
3341 3341
3342#define VECTOR_ELTS_MAX \ 3342#define VECTOR_ELTS_MAX \
3343 min (((min (PTRDIFF_MAX, SIZE_MAX) - header_size - large_vector_offset) \ 3343 ((ptrdiff_t) \
3344 / word_size), \ 3344 min (((min (PTRDIFF_MAX, SIZE_MAX) - header_size - large_vector_offset) \
3345 MOST_POSITIVE_FIXNUM) 3345 / word_size), \
3346 MOST_POSITIVE_FIXNUM))
3346 3347
3347/* Value is a pointer to a newly allocated Lisp_Vector structure 3348/* Value is a pointer to a newly allocated Lisp_Vector structure
3348 with room for LEN Lisp_Objects. LEN must be positive and 3349 with room for LEN Lisp_Objects. LEN must be positive and