From: Bruno Haible Date: Tue, 7 Apr 2009 02:07:30 +0000 (+0200) Subject: Fix unportable use of bit-fields. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02757ec3d0047ea7a719a7c0e6284335663b5496;p=pspp Fix unportable use of bit-fields. --- diff --git a/ChangeLog b/ChangeLog index d08ee3ae4d..bdb3e2f9a0 100644 --- 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 index a702f01465..ab88b84d8d 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];