From: Amos Jeffries Date: Sat, 9 Feb 2013 06:20:27 +0000 (-0700) Subject: Fix signed/unsigned comparison warnings on GCC 4.7 X-Git-Tag: SQUID_3_4_0_1~296 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61834850471ba1aec00a3ebd61400920eaddb152;p=thirdparty%2Fsquid.git Fix signed/unsigned comparison warnings on GCC 4.7 --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 9d7d1afc00..7aa6610629 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -291,7 +291,7 @@ update_maxobjsize(void) // Ensure that we do not discard objects which could be stored only in memory. // It is governed by maximum_object_size_in_memory (for now) // TODO: update this to check each in-memory location (SMP and local memory limits differ) - if (ms < Config.Store.maxInMemObjSize) + if (ms < statc_cast(Config.Store.maxInMemObjSize)) ms = Config.Store.maxInMemObjSize; store_maxobjsize = ms;