summaryrefslogtreecommitdiff
path: root/libs/hunspell/src/affentry.hxx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-17 16:51:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-17 16:51:49 +0300
commit63bb7d10c06fd8747412e76572647577e74a4bb5 (patch)
tree57587a87cc0ef69d8769d9eb25014da5abf7f942 /libs/hunspell/src/affentry.hxx
parentdb6b5a4bfa73b7fa4bc1a99f14d569b6f45c8275 (diff)
neglection of const might easily cause problems
Diffstat (limited to 'libs/hunspell/src/affentry.hxx')
-rw-r--r--libs/hunspell/src/affentry.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hunspell/src/affentry.hxx b/libs/hunspell/src/affentry.hxx
index 4bafc043f4..535a96bc42 100644
--- a/libs/hunspell/src/affentry.hxx
+++ b/libs/hunspell/src/affentry.hxx
@@ -118,7 +118,7 @@ class PfxEntry : public AffEntry {
const char* getKey() { return appnd.c_str(); }
std::string add(const char* word, size_t len);
- inline short getKeyLen() { return appnd.size(); }
+ inline short getKeyLen() { return (short)appnd.size(); }
inline const char* getMorph() { return morphcode; }
@@ -199,7 +199,7 @@ class SfxEntry : public AffEntry {
inline short getContLen() { return contclasslen; }
inline const char* getAffix() { return appnd.c_str(); }
- inline short getKeyLen() { return appnd.size(); }
+ inline short getKeyLen() { return (short)appnd.size(); }
inline SfxEntry* getNext() { return next; }
inline SfxEntry* getNextNE() { return nextne; }