diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-08 21:09:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-08 21:09:39 +0000 |
commit | 861cabec0529cc44e7d8741629bbfa9701dd40ad (patch) | |
tree | bab57f5e51b3b6e2c830ebe7bab15af8fdd05fbf /plugins/SpellChecker/src/utils.cpp | |
parent | 1451c41ce6f6f6921c70bcfe0aea52ae48ffc515 (diff) |
- crash fix in hunspell
- warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@3493 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/src/utils.cpp')
-rw-r--r-- | plugins/SpellChecker/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SpellChecker/src/utils.cpp b/plugins/SpellChecker/src/utils.cpp index bcb3fde5a8..5b46486e6f 100644 --- a/plugins/SpellChecker/src/utils.cpp +++ b/plugins/SpellChecker/src/utils.cpp @@ -1135,7 +1135,7 @@ void AddMenuForWord(Dialog *dlg, TCHAR *word, CHARRANGE &pos, HMENU hMenu, BOOL InsertMenu(data.hReplaceSubMenu, 0, MF_BYPOSITION, base + AUTOREPLACE_MENU_ID_BASE + suggestions.count, TranslateT("Other...")); if (suggestions.count > 0) { InsertMenu(data.hReplaceSubMenu, 0, MF_BYPOSITION | MF_SEPARATOR, 0, 0); - for (int i = suggestions.count-1; i >= 0; i--) + for (int i = (int)suggestions.count-1; i >= 0; i--) InsertMenu(data.hReplaceSubMenu, 0, MF_BYPOSITION, base + AUTOREPLACE_MENU_ID_BASE + i, suggestions.words[i]); } @@ -1155,7 +1155,7 @@ void AddMenuForWord(Dialog *dlg, TCHAR *word, CHARRANGE &pos, HMENU hMenu, BOOL hSubMenu = hMenu; } - for (int i = suggestions.count - 1; i >= 0; i--) + for (int i = (int)suggestions.count - 1; i >= 0; i--) InsertMenu(hSubMenu, 0, MF_BYPOSITION, base + i, suggestions.words[i]); } |