From de7fc77158af07966768b91a14384c469df705a9 Mon Sep 17 00:00:00 2001 From: skidder Date: Mon, 21 Jun 2004 22:17:51 +0000 Subject: [PATCH] Fix bug with wrong output when printing out used only blocks from memory pool --- src/common/classes/alloc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/classes/alloc.cpp b/src/common/classes/alloc.cpp index cbcbf91918..80e97039ba 100644 --- a/src/common/classes/alloc.cpp +++ b/src/common/classes/alloc.cpp @@ -32,7 +32,7 @@ * Contributor(s): * * - * $Id: alloc.cpp,v 1.52 2004-06-13 23:38:13 brodsom Exp $ + * $Id: alloc.cpp,v 1.53 2004-06-21 22:17:51 skidder Exp $ * */ @@ -660,7 +660,7 @@ bool MemoryPool::verify_pool() { static void print_block(FILE *file, MemoryBlock *blk, bool used_only) { void *mem = (char*)blk + MEM_ALIGN(sizeof(MemoryBlock)); - if ((blk->mbk_flags & MBK_USED && blk->mbk_type > 0) || !used_only) { + if (((blk->mbk_flags & MBK_USED) && blk->mbk_type >= 0) || !used_only) { char flags[100]; flags[0] = 0; if (blk->mbk_flags & MBK_USED)