From 7515a1d493f8f0f6f009b50c99cc5e27824bd6b3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 8 Dec 2018 22:59:50 -0800 Subject: [PATCH] =?utf8?q?*=20src/alloc.c=20(VECTOR=5FELTS=5FMAX):=20Make?= =?utf8?q?=20sure=20it=E2=80=99s=20signed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/alloc.c | 7 ++++--- 1 file 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) 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 -- 2.39.2