From 22edeb6d8fd99407534b4f630266ed5c904cf6a1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 4 Sep 2011 09:47:19 +1000 Subject: Cast to ensure comparison valid. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(wParam) <= 0) vs.caretWidth = 0; else if (wParam >= 3) vs.caretWidth = 3; -- cgit v1.2.3