From: emv Date: Mon, 17 Jun 2013 10:30:59 +0000 (+0400) Subject: 0024030: Undefined reference to `NCollection_IncAllocator::DefaultBlockSize'. X-Git-Tag: V6_7_0_beta~234 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=8ba3c5e0730236b2c42f4acb55a8fa932b3e7d3b;p=occt-copy.git 0024030: Undefined reference to `NCollection_IncAllocator::DefaultBlockSize'. --- diff --git a/src/NCollection/NCollection_IncAllocator.cxx b/src/NCollection/NCollection_IncAllocator.cxx index 74ed5ab594..77fc53689f 100755 --- a/src/NCollection/NCollection_IncAllocator.cxx +++ b/src/NCollection/NCollection_IncAllocator.cxx @@ -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));