projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6e88a46
)
0024030: Undefined reference to `NCollection_IncAllocator::DefaultBlockSize'.
author
emv
<emv@opencascade.com>
Mon, 17 Jun 2013 10:30:59 +0000
(14:30 +0400)
committer
emv
<emv@opencascade.com>
Tue, 18 Jun 2013 11:45:55 +0000
(15:45 +0400)
src/NCollection/NCollection_IncAllocator.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/NCollection/NCollection_IncAllocator.cxx
b/src/NCollection/NCollection_IncAllocator.cxx
index
74ed5ab
..
77fc536
100755
(executable)
--- 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));