Fix unportable use of bit-fields.
authorBruno Haible <bruno@clisp.org>
Tue, 7 Apr 2009 02:07:30 +0000 (04:07 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 7 Apr 2009 02:07:30 +0000 (04:07 +0200)
ChangeLog
lib/unicase/special-casing.h

index d08ee3ae4d46d93fae6b2595a2a4887f73a80007..bdb3e2f9a033c2c9dfe9d456b1f38906653e8ae3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-04-06  Bruno Haible  <bruno@clisp.org>
+
+       Fix unportable use of bit-fields.
+       * lib/unicase/special-casing.h (struct special_casing_rule): Change the
+       bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
+       AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
+
 2009-04-06  Bruno Haible  <bruno@clisp.org>
 
        Avoid test failures on AIX and OSF/1.
index a702f014652e80447e9f301483c25f67d9946979..ab88b84d8d1039671d7c02f855b0479ec253d298 100644 (file)
@@ -38,7 +38,7 @@ struct special_casing_rule
   /*bool*/ unsigned int has_next : 1;
 
   /* Context.  */
-  int context : 7;
+  signed int context : 7;
 
   /* Language, or an empty string.  */
   char language[2];