From: Bruno Haible Date: Tue, 7 Apr 2009 02:07:30 +0000 (+0200) Subject: Fix unportable use of bit-fields. X-Git-Tag: v0.1~6020 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=02757ec3d0047ea7a719a7c0e6284335663b5496;p=gnulib.git Fix unportable use of bit-fields. --- diff --git a/ChangeLog b/ChangeLog index d08ee3ae4..bdb3e2f9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2009-04-06 Bruno Haible + 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 + Avoid test failures on AIX and OSF/1. * tests/unicase/test-u8-casefold.c (check): Account for the possibility that malloc(0) = NULL. diff --git a/lib/unicase/special-casing.h b/lib/unicase/special-casing.h index a702f0146..ab88b84d8 100644 --- a/lib/unicase/special-casing.h +++ b/lib/unicase/special-casing.h @@ -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];