summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabeldict
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-09-03 17:14:02 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-09-03 17:14:12 +0200
commitfd85e292227106005707202a5bebeaa8cba987dc (patch)
tree118f8fb0aaf26d4ab446da73d33b4b4cdcaa41b5 /kbabel/kbabeldict
parent11793772f64750d8230b6913f682c95114ae7075 (diff)
downloadtdesdk-fd85e292227106005707202a5bebeaa8cba987dc.tar.gz
tdesdk-fd85e292227106005707202a5bebeaa8cba987dc.zip
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 6dcbd0e68452bb64057e97a7c648478f2511b3f2)
Diffstat (limited to 'kbabel/kbabeldict')
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/database.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}