]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix signed/unsigned comparison warnings on GCC 4.7
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 9 Feb 2013 06:20:27 +0000 (23:20 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 9 Feb 2013 06:20:27 +0000 (23:20 -0700)
src/cache_cf.cc

index 9d7d1afc00422cf72546915858a7b40566c922f3..7aa661062935e36c5e2a9815521266b272334b15 100644 (file)
@@ -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<int64_t>(Config.Store.maxInMemObjSize))
         ms = Config.Store.maxInMemObjSize;
 
     store_maxobjsize = ms;