From ffef242cbf1ff1d084ad9807f94939dcea7ba06a Mon Sep 17 00:00:00 2001 From: hno <> Date: Mon, 8 Apr 2002 14:19:05 +0000 Subject: [PATCH] Oops. My cleanup of pointer aritmetic in memCompChunks inadvertly compared the wrong pointers.. Must have been tired. Thanks to Andree for noticing quickly --- lib/MemPool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.47.3