File kdeutils-3.5.10-gcc6.patch of Package kdeutils3

Index: kdeutils-3.5.10/khexedit/lib/kbigbuffer.cpp
===================================================================
--- kdeutils-3.5.10.orig/khexedit/lib/kbigbuffer.cpp
+++ kdeutils-3.5.10/khexedit/lib/kbigbuffer.cpp
@@ -17,6 +17,7 @@
 
 // c specific
 #include <stdlib.h>
+#include <cmath>
 // lib specific
 #include "kbigbuffer.h"
 
@@ -170,7 +171,7 @@ bool KBigBuffer::ensurePageLoaded( unsig
   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( std::abs(FirstPage-PageIndex) > std::abs(LastPage-PageIndex) )
       while( !freePage(FirstPage++) );
     else
       while( !freePage(LastPage--) );
openSUSE Build Service is sponsored by