]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stc/ScintillaWX.cpp
use INVALID_SOCKET instead of -1 to avoid signed/unsigned comparison warning
[wxWidgets.git] / src / stc / ScintillaWX.cpp
index 3f2b272c819b71d26b715e435631de81477cd2e5..0ac6b14415b157718c16741d4bc94baff2c74717 100644 (file)
@@ -617,8 +617,8 @@ void ScintillaWX::UpdateSystemCaret() {
 
 bool ScintillaWX::HasCaretSizeChanged() {
 #ifdef __WXMSW__
-    if (( (0 != vs.caretWidth) && (sysCaretWidth != vs.caretWidth) )
-        || (0 != vs.lineHeight) && (sysCaretHeight != vs.lineHeight)) {
+    if ( (vs.caretWidth && (sysCaretWidth != vs.caretWidth))
+        || (vs.lineHeight && (sysCaretHeight != vs.lineHeight)) ) {
         return true;
     }
 #endif