]> git.saurik.com Git - wxWidgets.git/commitdiff
fix MSVC warning about implicit int to bool conversion
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 4 Feb 2009 23:06:29 +0000 (23:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 4 Feb 2009 23:06:29 +0000 (23:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appcmn.cpp

index 95da92def714e2316dd39e54cadf551fb62e35d8..f70be7b5add6a464df6e0d20731ddff6dd1d6dbe 100644 (file)
@@ -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)