From: Amos Jeffries Date: Sat, 13 Aug 2011 14:55:47 +0000 (+1200) Subject: Fix signed/unsigend conversion error X-Git-Tag: take08~43^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8baf6ea32b94d5d6426065fdcfe00716bc9b4b69;p=thirdparty%2Fsquid.git Fix signed/unsigend conversion error --- diff --git a/tools/purge/purge.cc b/tools/purge/purge.cc index c6beb6f882..4f3d47bee9 100644 --- a/tools/purge/purge.cc +++ b/tools/purge/purge.cc @@ -292,7 +292,7 @@ log_extended( const char* fn, int code, long size, const SquidMetaList* meta ) (unsigned long)temp.timestamp, (unsigned long)temp.lastref, (unsigned long)temp.expires, (unsigned long)temp.lastmod, temp.flags, temp.refcount ); } else { - unsigned long ul = -1; // Match type of StoreMetaTLV fields + unsigned long ul = ULONG_MAX; // Match type of StoreMetaTLV fields unsigned short hu = 0; // Match type of StoreMetaTLV refcount fields snprintf( timeb, sizeof(timeb), "%08lx %08lx %08lx %08lx %04x %5d ", ul, ul, ul, ul, 0, hu); }