From c2d11dc2758abbf68cc13d264264213bb3084660 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 27 Oct 2017 00:07:55 +0200 Subject: [PATCH] Fix harmless MSVC warning about int to bool conversion Compare the integer result of a bitwise operation with 0 explicitly to avoid the C4800 warning given since the changes of the recent commit 802eac475d87434705705dd986db815517173ccc --- include/wx/zipstrm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/zipstrm.h b/include/wx/zipstrm.h index 09d7b7ca65..ad07e42d64 100644 --- a/include/wx/zipstrm.h +++ b/include/wx/zipstrm.h @@ -521,7 +521,7 @@ inline bool wxZipEntry::IsMadeByUnix() const { case wxZIP_SYSTEM_MSDOS: // note: some unix zippers put madeby = dos - return m_ExternalAttributes & ~0xFFFF; + return (m_ExternalAttributes & ~0xFFFF) != 0; case wxZIP_SYSTEM_OPENVMS: case wxZIP_SYSTEM_UNIX: