From 6dcbd0e68452bb64057e97a7c648478f2511b3f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 3 Sep 2016 17:14:02 +0200 Subject: Fix FTBFS with GCC6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kbabel/kbabeldict/modules/dbsearchengine/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kbabel/kbabeldict') diff --git a/kbabel/kbabeldict/modules/dbsearchengine/database.cpp b/kbabel/kbabeldict/modules/dbsearchengine/database.cpp index 50880dcc..5fa69de0 100644 --- a/kbabel/kbabeldict/modules/dbsearchengine/database.cpp +++ b/kbabel/kbabeldict/modules/dbsearchengine/database.cpp @@ -1163,13 +1163,13 @@ DataBaseManager::addLocation (TQString word, unsigned int location) antibounce++; //calculate step or use antibounce - if (abs ((int) d[loc] - (int) location) < 50 + if (labs ((int) d[loc] - (int) location) < 50 || antibounce > 100) step = 1; //Go linear... else { step = - (abs (d[loc] - location) * num) / totalrecord + 1; + (labs (d[loc] - location) * num) / totalrecord + 1; } -- cgit v1.2.3