summaryrefslogtreecommitdiffstats
path: root/khexedit/lib
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-09-03 16:55:00 +0200
committerSlávek Banko <[email protected]>2016-09-03 16:55:11 +0200
commita11d0b82f87d7342f3f6213d678c166d4964be88 (patch)
tree630608370225423ef8e317c58949e99ef03c9de3 /khexedit/lib
parent03af0c40cb19e918d73b861a273f8659a1ed8604 (diff)
downloadtdeutils-a11d0b82f87d7342f3f6213d678c166d4964be88.tar.gz
tdeutils-a11d0b82f87d7342f3f6213d678c166d4964be88.zip
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 785a180341c7a5200bef31bcebc9851bc63d8ea9)
Diffstat (limited to 'khexedit/lib')
-rw-r--r--khexedit/lib/kbigbuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/khexedit/lib/kbigbuffer.cpp b/khexedit/lib/kbigbuffer.cpp
index 99925da..b3be8a9 100644
--- a/khexedit/lib/kbigbuffer.cpp
+++ b/khexedit/lib/kbigbuffer.cpp
@@ -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--) );