# HG changeset patch # User Bruno Haible # Date 1239070050 -7200 # Node ID 3017105ecd7340fea9b7d24eab47fc53ffd31f5b # Parent f8e64c4210ee94d91113d3444dec05532c89ac14 Fix unportable use of bit-fields. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +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. diff --git a/lib/unicase/special-casing.h b/lib/unicase/special-casing.h --- 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];