mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0024030: Undefined reference to `NCollection_IncAllocator::DefaultBlockSize'.
This commit is contained in:
parent
6e88a46c01
commit
8ba3c5e073
@ -178,8 +178,9 @@ NCollection_IncAllocator::NCollection_IncAllocator (const size_t theBlockSize)
|
||||
if (IS_DEBUG)
|
||||
Debug_Create(this);
|
||||
#endif
|
||||
const size_t aDefault = DefaultBlockSize;
|
||||
const size_t aSize = IMEM_SIZE(sizeof(IBlock)) +
|
||||
IMEM_SIZE((theBlockSize > 2*sizeof(IBlock)) ? theBlockSize : DefaultBlockSize);
|
||||
IMEM_SIZE((theBlockSize > 2*sizeof(IBlock)) ? theBlockSize : aDefault);
|
||||
IBlock * const aBlock = (IBlock *) malloc (aSize * sizeof(aligned_t));
|
||||
myFirstBlock = aBlock;
|
||||
mySize = aSize - IMEM_SIZE(sizeof(IBlock));
|
||||
|
Loading…
x
Reference in New Issue
Block a user