Make m_typeflag an int.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user