From 5f77e766a3d9d90d2295612532a28fce7dbd2542 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sun, 29 Oct 2006 22:31:26 +0000 Subject: [PATCH] Make m_typeflag an int. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/tarstrm.h | 2 +- src/common/tarstrm.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/tarstrm.h b/include/wx/tarstrm.h index adb5cb7cbf..714156d976 100644 --- a/include/wx/tarstrm.h +++ b/include/wx/tarstrm.h @@ -133,7 +133,7 @@ private: wxDateTime m_ModifyTime; wxDateTime m_AccessTime; wxDateTime m_CreateTime; - wxChar m_TypeFlag; + int m_TypeFlag; wxString m_LinkName; wxString m_UserName; wxString m_GroupName; 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; } -- 2.45.2