summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/RichEdit.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 17:06:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 17:06:04 +0300
commit1039b2829a264280493ba0fa979214fe024dc70c (patch)
tree8fa6a60eb46627582c372b56a4a1d4754d6732c3 /plugins/SpellChecker/src/RichEdit.cpp
parent62a186697df33c96dc1a6dac0f4dfc38652fb96f (diff)
WORD -> uint16_t
Diffstat (limited to 'plugins/SpellChecker/src/RichEdit.cpp')
-rw-r--r--plugins/SpellChecker/src/RichEdit.cpp2
1 files changed, 1 insertions, 1 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