From: hno <> Date: Mon, 8 Apr 2002 14:19:05 +0000 (+0000) Subject: Oops. My cleanup of pointer aritmetic in memCompChunks inadvertly X-Git-Tag: SQUID_3_0_PRE1~1111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffef242cbf1ff1d084ad9807f94939dcea7ba06a;p=thirdparty%2Fsquid.git Oops. My cleanup of pointer aritmetic in memCompChunks inadvertly compared the wrong pointers.. Must have been tired. Thanks to Andree for noticing quickly --- diff --git a/lib/MemPool.c b/lib/MemPool.c index 6af80359a4..ae384babcb 100644 --- a/lib/MemPool.c +++ b/lib/MemPool.c @@ -1,6 +1,6 @@ /* - * $Id: MemPool.c,v 1.8 2002/04/06 15:06:13 hno Exp $ + * $Id: MemPool.c,v 1.9 2002/04/08 08:19:05 hno Exp $ * * DEBUG: section 63 Low Level Memory Pool Management * AUTHOR: Alex Rousskov, Andres Kroonmaa @@ -184,9 +184,9 @@ memPoolSetIdleLimit(size_t new_idle_limit) static int memCompChunks(MemChunk * chunkA, MemChunk * chunkB) { - if (chunkA > chunkB) + if (chunkA->objCache > chunkB->objCache) return 1; - else if (chunkA < chunkB) + else if (chunkA->objCache < chunkB->objCache) return -1; else return 0;