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:
syntheticpp 2005-07-18 07:17:29 +00:00
parent d4a72ab914
commit ca73030a03

View file

@ -322,10 +322,10 @@ void * FixedAllocator::Allocate( void )
// isn't any more empty
emptyChunk_ = NULL;
void *place = allocChunk_->Allocate(blockSize_);
assert( allocChunk_ != NULL );
assert( !allocChunk_->IsFilled() );
void *place = allocChunk_->Allocate(blockSize_);
// prove either emptyChunk_ points nowhere, or points to a truly empty Chunk.
assert( ( NULL == emptyChunk_ ) || ( emptyChunk_->HasAvailable( numBlocks_ ) ) );