From 4dfc0ca0c542424eaee4245bd48ba3084c2d28d0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 25 Feb 2012 23:49:53 +0000 Subject: [PATCH] Suppress harmless MSVC warnings about int to bool conversions. Convert int to bool explicitly to avoid MSVC warning C4800. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filename.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 0cacb63e47..683ac34951 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -640,8 +640,8 @@ bool wxFileSystemObjectExists(const wxString& path, int flags) { // Should the existence of file/directory with this name be accepted, i.e. // result in the true return value from this function? - const bool acceptFile = flags & wxFileSystemObject_File; - const bool acceptDir = flags & wxFileSystemObject_Dir; + const bool acceptFile = (flags & wxFileSystemObject_File) != 0; + const bool acceptDir = (flags & wxFileSystemObject_Dir) != 0; wxString strPath(path); -- 2.45.2