hrev45666 adds 1 changeset to branch 'master' old head: 9e1a0720cb3f2e15944658003beac1db18bf5c09 new head: 623528042506bf847008f8f6401ca3007169b065 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=6235280+%5E9e1a072 ---------------------------------------------------------------------------- 6235280: libgnu.so: Fix GCC4.8 narrowing conversion warnings Signed-off-by: Jerome Duval <jerome.duval@xxxxxxxxx> [ Murai Takashi <tmurai01@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev45666 Commit: 623528042506bf847008f8f6401ca3007169b065 URL: http://cgit.haiku-os.org/haiku/commit/?id=6235280 Author: Murai Takashi <tmurai01@xxxxxxxxx> Date: Sat May 11 07:02:01 2013 UTC Committer: Jerome Duval <jerome.duval@xxxxxxxxx> Commit-Date: Sat May 11 07:02:01 2013 UTC ---------------------------------------------------------------------------- 1 file changed, 3 insertions(+), 1 deletion(-) src/libs/gnu/xattr.cpp | 4 +++- ---------------------------------------------------------------------------- diff --git a/src/libs/gnu/xattr.cpp b/src/libs/gnu/xattr.cpp index fadb573..9873018 100644 --- a/src/libs/gnu/xattr.cpp +++ b/src/libs/gnu/xattr.cpp @@ -43,7 +43,9 @@ struct AttributeName { // printable, just use them as the type string, otherwise convert // to hex char typeString[9]; - uint8 typeBytes[4] = { type >> 24, type >> 16, type >> 8, type }; + uint8 typeBytes[4] = { (uint8)((type >> 24) & 0xff), + (uint8)((type >> 16) & 0xff), (uint8)((type >> 8) & 0xff), + (uint8)(type & 0xff) }; if (isprint(typeBytes[0]) && isprint(typeBytes[1]) && isprint(typeBytes[2]) && isprint(typeBytes[3])) { typeString[0] = typeBytes[0];