From: Paul Eggert Date: Sat, 18 Jun 2011 19:08:22 +0000 (-0700) Subject: * lisp.h (struct Lisp_Bool_Vector.size): EMACS_INT, not EMACS_UINT. X-Git-Tag: emacs-pretest-24.0.90~104^2~473^2~42 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b61cc01c06234b0f48b5485d7d592c1c81c05c70;p=emacs.git * 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). --- 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]; };