Fix: wrong suggestion comparator.

Change-Id: I8829c7cb3060955e345fbdc003cf77f8469d37c0
main
Keisuke Kuroyanagi 2014-03-07 19:12:46 +09:00
parent 2600c092b0
commit 5dc17c22ca
1 changed files with 2 additions and 2 deletions

View File

@ -30,9 +30,9 @@ class SuggestedWord {
public: public:
bool operator()(const SuggestedWord &left, const SuggestedWord &right) { bool operator()(const SuggestedWord &left, const SuggestedWord &right) {
if (left.getScore() != right.getScore()) { if (left.getScore() != right.getScore()) {
return left.getScore() < right.getScore(); return left.getScore() > right.getScore();
} }
return left.getCodePointCount() > right.getCodePointCount(); return left.getCodePointCount() < right.getCodePointCount();
} }
private: private: