diff options
Diffstat (limited to 'plugins/SpellChecker/src')
-rw-r--r-- | plugins/SpellChecker/src/RichEdit.cpp | 2 | ||||
-rw-r--r-- | plugins/SpellChecker/src/options.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SpellChecker/src/RichEdit.cpp b/plugins/SpellChecker/src/RichEdit.cpp index fa001f1847..11a4a6f553 100644 --- a/plugins/SpellChecker/src/RichEdit.cpp +++ b/plugins/SpellChecker/src/RichEdit.cpp @@ -145,7 +145,7 @@ int RichEdit::GetLineCount() const void RichEdit::GetLine(int line, wchar_t *text, size_t text_len) const
{
- *((WORD*)text) = WORD(text_len - 1);
+ *((uint16_t*)text) = uint16_t(text_len - 1);
unsigned size = (unsigned)SendMessage(EM_GETLINE, (WPARAM)line, (LPARAM)text);
// Sometimes it likes to return size = lineLen+1, adding an \n at the end, so we remove it here
diff --git a/plugins/SpellChecker/src/options.h b/plugins/SpellChecker/src/options.h index 5577c8fb3a..ade1e6f55b 100644 --- a/plugins/SpellChecker/src/options.h +++ b/plugins/SpellChecker/src/options.h @@ -38,7 +38,7 @@ struct Options BOOL ignore_with_numbers;
BOOL ask_when_sending_with_error;
- WORD underline_type;
+ uint16_t underline_type;
BOOL cascade_corrections;
BOOL show_all_corrections;
BOOL show_wrong_word;
|