changeset 11467:3017105ecd73

Fix unportable use of bit-fields.
author Bruno Haible <bruno@clisp.org>
date Tue, 07 Apr 2009 04:07:30 +0200
parents f8e64c4210ee
children 65ab7e6dcafe
files ChangeLog lib/unicase/special-casing.h
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/unicase/special-casing.h
+++ b/lib/unicase/special-casing.h
@@ -38,7 +38,7 @@
   /*bool*/ unsigned int has_next : 1;
 
   /* Context.  */
-  int context : 7;
+  signed int context : 7;
 
   /* Language, or an empty string.  */
   char language[2];