From: Vadim Zeitlin Date: Wed, 7 Apr 2010 12:55:21 +0000 (+0000) Subject: Fix harmless MSVC warning about int to bool conversion in Scintilla. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c26400bd067ce812a7dd3b090dce0928b8b0e80e?ds=inline Fix harmless MSVC warning about int to bool conversion in Scintilla. The warning is harmless but prevents buildbot from reporting any new warnings during the library compilation step so suppress it. Notice that it might be better if ViewStyle::extraFontFlag was bool and not int to begin with. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/stc/ScintillaWX.cpp b/src/stc/ScintillaWX.cpp index 0850bcbced..3e384177bb 100644 --- a/src/stc/ScintillaWX.cpp +++ b/src/stc/ScintillaWX.cpp @@ -1111,7 +1111,7 @@ void ScintillaWX::SetUseAntiAliasing(bool useAA) { } bool ScintillaWX::GetUseAntiAliasing() { - return vs.extraFontFlag; + return vs.extraFontFlag != 0; } //----------------------------------------------------------------------