From 63bb7d10c06fd8747412e76572647577e74a4bb5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 17 Jan 2018 16:51:49 +0300 Subject: neglection of const might easily cause problems --- libs/hunspell/src/affentry.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hunspell/src/affentry.hxx') 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; } -- cgit v1.2.3