* lisp.h (struct Lisp_Bool_Vector.size): EMACS_INT, not EMACS_UINT.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Jun 2011 19:08:22 +0000 (12:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 18 Jun 2011 19:08:22 +0000 (12:08 -0700)
We prefer signed types, and the value cannot exceed the EMACS_INT
range anyway (because otherwise the length would not be representable).

src/ChangeLog
src/lisp.h

index 63c4597..04e8aee 100644 (file)
@@ -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)
index 7c9275e..108712a 100644 (file)
@@ -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];
   };