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
802eac475d
This commit is contained in:
Vadim Zeitlin 2017-10-27 00:07:55 +02:00
parent 8a4573223e
commit c2d11dc275

View File

@ -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: