From 12558caef1dec92590a0aa2590680ce8e90bc350 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Fri, 13 Nov 2009 01:27:46 -0500 Subject: [PATCH] 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 --- libarchive/archive_write_disk_set_standard_lookup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.3