From abfb67edbb3fceed7ff7d42008aae8f8111f1acd Mon Sep 17 00:00:00 2001 From: hvlad Date: Tue, 19 Jan 2010 12:50:43 +0000 Subject: [PATCH] Fixed bug when huge memory chunk (more than 2GB) is released --- src/common/classes/alloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/classes/alloc.cpp b/src/common/classes/alloc.cpp index e65d0f48e6..095ac46d17 100644 --- a/src/common/classes/alloc.cpp +++ b/src/common/classes/alloc.cpp @@ -546,7 +546,7 @@ void MemoryPool::releaseBlock(MemBlock *block) throw () #endif --blocksActive; - int length = block->length; + SINT64 length = block->length; // If length is negative, this is a small block