From: Tim Kientzle Date: Fri, 13 Nov 2009 06:27:46 +0000 (-0500) Subject: Work around a compiler warning pointed out by Bill Hoffman. X-Git-Tag: v2.8.0~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12558caef1dec92590a0aa2590680ce8e90bc350;p=thirdparty%2Flibarchive.git Work around a compiler warning pointed out by Bill Hoffman. Also, clean up the whitespace here to match the BSD style that's used in the rest of libarchive. SVN-Revision: 1650 --- diff --git a/libarchive/archive_write_disk_set_standard_lookup.c b/libarchive/archive_write_disk_set_standard_lookup.c index 55373b8cf..e41d61b12 100644 --- a/libarchive/archive_write_disk_set_standard_lookup.c +++ b/libarchive/archive_write_disk_set_standard_lookup.c @@ -230,8 +230,8 @@ hash(const char *p) as used by ELF for hashing function names. */ unsigned g, h = 0; while (*p != '\0') { - h = ( h << 4 ) + *p++; - if (( g = h & 0xF0000000 )) { + h = (h << 4) + *p++; + if ((g = h & 0xF0000000) != 0) { h ^= g >> 24; h &= 0x0FFFFFFF; }