Fix FTBFS with GCC6

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent e5a3116cff
commit 785a180341

@ -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--) );

@ -33,7 +33,9 @@
RegExpConverter* RegExpConverter::_current = 0;
RegExp* RegExpConverter::parse( const TQString&, bool* ok )
{
ok = false;
if(ok) {
*ok = false;
}
return new DotRegExp( false ); // This method should never be called.
}

Loading…
Cancel
Save