8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00

Fixed the wrong assertion.

This commit is contained in:
dimitr 2007-09-17 05:56:16 +00:00
parent 6db42106c9
commit af1a7bd430

View File

@ -1255,7 +1255,7 @@ void* MemoryPool::internal_alloc(size_t size, SSHORT type
// This method assumes already aligned block sizes
fb_assert(size % ALLOC_ALIGNMENT == 0);
// Make sure block can fit into extent
fb_assert(size < EXTENT_SIZE - MEM_ALIGN(sizeof(MemoryBlock)) - MEM_ALIGN(sizeof(MemoryExtent)));
fb_assert(size <= EXTENT_SIZE - MEM_ALIGN(sizeof(MemoryBlock)) - MEM_ALIGN(sizeof(MemoryExtent)));
// Lookup a block greater or equal than size in freeBlocks tree
MemoryBlock* blk;