|
|
|
@ -170,7 +170,7 @@ bool KBigBuffer::ensurePageLoaded( unsigned int PageIndex ) const
|
|
|
|
|
if( NoOfFreePages < 1 )
|
|
|
|
|
{
|
|
|
|
|
// free the page which is the furthest away from the page we are loading
|
|
|
|
|
if( abs(FirstPage-PageIndex) > abs(LastPage-PageIndex) )
|
|
|
|
|
if( labs(FirstPage-PageIndex) > labs(LastPage-PageIndex) )
|
|
|
|
|
while( !freePage(FirstPage++) );
|
|
|
|
|
else
|
|
|
|
|
while( !freePage(LastPage--) );
|
|
|
|
|