aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-09-04 09:47:19 +1000
committernyamatongwe <unknown>2011-09-04 09:47:19 +1000
commit22edeb6d8fd99407534b4f630266ed5c904cf6a1 (patch)
tree25e3656ceaa7de1876c6eb27c9b21f2ce6b0309c /src
parentbee370d047b32376fbf718c7dd0f3ef8f35b5036 (diff)
downloadscintilla-mirror-22edeb6d8fd99407534b4f630266ed5c904cf6a1.tar.gz
Cast to ensure comparison valid.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
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;