move asserts to the correct place
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@151 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
d4a72ab914
commit
ca73030a03
1 changed files with 2 additions and 2 deletions
|
@ -322,10 +322,10 @@ void * FixedAllocator::Allocate( void )
|
||||||
// isn't any more empty
|
// isn't any more empty
|
||||||
emptyChunk_ = NULL;
|
emptyChunk_ = NULL;
|
||||||
|
|
||||||
void *place = allocChunk_->Allocate(blockSize_);
|
|
||||||
|
|
||||||
assert( allocChunk_ != NULL );
|
assert( allocChunk_ != NULL );
|
||||||
assert( !allocChunk_->IsFilled() );
|
assert( !allocChunk_->IsFilled() );
|
||||||
|
void *place = allocChunk_->Allocate(blockSize_);
|
||||||
|
|
||||||
// prove either emptyChunk_ points nowhere, or points to a truly empty Chunk.
|
// prove either emptyChunk_ points nowhere, or points to a truly empty Chunk.
|
||||||
assert( ( NULL == emptyChunk_ ) || ( emptyChunk_->HasAvailable( numBlocks_ ) ) );
|
assert( ( NULL == emptyChunk_ ) || ( emptyChunk_->HasAvailable( numBlocks_ ) ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue