mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 01:23:03 +01:00
Fixed the wrong assertion.
This commit is contained in:
parent
6db42106c9
commit
af1a7bd430
@ -1255,7 +1255,7 @@ void* MemoryPool::internal_alloc(size_t size, SSHORT type
|
|||||||
// This method assumes already aligned block sizes
|
// This method assumes already aligned block sizes
|
||||||
fb_assert(size % ALLOC_ALIGNMENT == 0);
|
fb_assert(size % ALLOC_ALIGNMENT == 0);
|
||||||
// Make sure block can fit into extent
|
// 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
|
// Lookup a block greater or equal than size in freeBlocks tree
|
||||||
MemoryBlock* blk;
|
MemoryBlock* blk;
|
||||||
|
Loading…
Reference in New Issue
Block a user