diff options
author | nyamatongwe <devnull@localhost> | 2011-09-04 09:47:19 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-09-04 09:47:19 +1000 |
commit | 225d9e45a488a2b4e212e4f73f988b613105129a (patch) | |
tree | 7d561ad2641a0589b78f8b0558fc7259e5e390bc | |
parent | bca68a999e7b5c8245175c9eab6aef7e1f13f850 (diff) | |
download | scintilla-mirror-225d9e45a488a2b4e212e4f73f988b613105129a.tar.gz |
Cast to ensure comparison valid.
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index f6b1ea308..347f27318 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -8378,7 +8378,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return vs.caretStyle; case SCI_SETCARETWIDTH: - if (wParam <= 0) + if (static_cast<int>(wParam) <= 0) vs.caretWidth = 0; else if (wParam >= 3) vs.caretWidth = 3; |