diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-09-03 17:14:02 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-03 17:14:02 +0200 |
commit | 6dcbd0e68452bb64057e97a7c648478f2511b3f2 (patch) | |
tree | ad9b1663062aa6824a00602f79d78a5c2b425ceb /kbabel/kbabeldict/modules/dbsearchengine | |
parent | 21f0554315868771c8ad11ce53db403e4534a8e7 (diff) | |
download | tdesdk-6dcbd0e68452bb64057e97a7c648478f2511b3f2.tar.gz tdesdk-6dcbd0e68452bb64057e97a7c648478f2511b3f2.zip |
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kbabel/kbabeldict/modules/dbsearchengine')
-rw-r--r-- | kbabel/kbabeldict/modules/dbsearchengine/database.cpp | 4 |
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; } |