From b61cc01c06234b0f48b5485d7d592c1c81c05c70 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 18 Jun 2011 12:08:22 -0700 Subject: [PATCH] * lisp.h (struct Lisp_Bool_Vector.size): EMACS_INT, not EMACS_UINT. We prefer signed types, and the value cannot exceed the EMACS_INT range anyway (because otherwise the length would not be representable). --- src/ChangeLog | 3 +++ src/lisp.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 63c4597f5c0..04e8aeef848 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -3,6 +3,9 @@ * lisp.h (union Lisp_Object.i): EMACS_INT, not EMACS_UINT. This is for consistency with the ordinary, non-USE_LISP_UNION_TYPE, implementation. + (struct Lisp_Bool_Vector.size): EMACS_INT, not EMACS_UINT. + We prefer signed types, and the value cannot exceed the EMACS_INT + range anyway (because otherwise the length would not be representable). * indent.c (sane_tab_width): New function. (current_column, scan_for_column, Findent_to, position_indentation) diff --git a/src/lisp.h b/src/lisp.h index 7c9275e6078..108712a7894 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -1013,7 +1013,7 @@ struct Lisp_Bool_Vector just the subtype information. */ struct vectorlike_header header; /* This is the size in bits. */ - EMACS_UINT size; + EMACS_INT size; /* This contains the actual bits, packed into bytes. */ unsigned char data[1]; }; -- 2.39.2