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:
@@ -521,7 +521,7 @@ inline bool wxZipEntry::IsMadeByUnix() const
|
|||||||
{
|
{
|
||||||
case wxZIP_SYSTEM_MSDOS:
|
case wxZIP_SYSTEM_MSDOS:
|
||||||
// note: some unix zippers put madeby = dos
|
// note: some unix zippers put madeby = dos
|
||||||
return m_ExternalAttributes & ~0xFFFF;
|
return (m_ExternalAttributes & ~0xFFFF) != 0;
|
||||||
|
|
||||||
case wxZIP_SYSTEM_OPENVMS:
|
case wxZIP_SYSTEM_OPENVMS:
|
||||||
case wxZIP_SYSTEM_UNIX:
|
case wxZIP_SYSTEM_UNIX:
|
||||||
|
Reference in New Issue
Block a user