From: Vadim Zeitlin Date: Wed, 4 Feb 2009 23:06:29 +0000 (+0000) Subject: fix MSVC warning about implicit int to bool conversion X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2fd35de1c3d757f2b9eabdf8d828e363eb754db9 fix MSVC warning about implicit int to bool conversion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 95da92def7..f70be7b5ad 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -328,7 +328,7 @@ void wxAppBase::SetActive(bool active, wxWindow * WXUNUSED(lastFocus)) bool wxAppBase::IsEventAllowedInsideYield(wxEventCategory cat) const { - return m_eventsToProcessInsideYield & cat; + return (m_eventsToProcessInsideYield & cat) != 0; } bool wxAppBase::SafeYield(wxWindow *win, bool onlyIfNeeded)