X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/489a164c1c56855b29285230237c69514ff823e1..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/common/tarstrm.cpp?ds=sidebyside diff --git a/src/common/tarstrm.cpp b/src/common/tarstrm.cpp index 65fc6a2763..ea47b5bc1f 100644 --- a/src/common/tarstrm.cpp +++ b/src/common/tarstrm.cpp @@ -529,14 +529,14 @@ wxString wxTarEntry::GetInternalName(const wxString& name, bool wxTarEntry::IsDir() const { - return m_TypeFlag - wxTAR_DIRTYPE == 0; + return m_TypeFlag == wxTAR_DIRTYPE; } void wxTarEntry::SetIsDir(bool isDir) { if (isDir) m_TypeFlag = wxTAR_DIRTYPE; - else if (m_TypeFlag - wxTAR_DIRTYPE == 0) + else if (m_TypeFlag == wxTAR_DIRTYPE) m_TypeFlag = wxTAR_REGTYPE; }