Apparently broken bitmask checks
Change-Id: Ie5749b43de5e47cfede4662e346dee194c454b2f
This commit is contained in:
@@ -105,11 +105,11 @@ namespace ftp {
|
||||
}
|
||||
|
||||
bool isDir() const {
|
||||
return bool(m_nMode && INETCOREFTP_FILEMODE_ISDIR);
|
||||
return (m_nMode & INETCOREFTP_FILEMODE_ISDIR) != 0;
|
||||
}
|
||||
|
||||
bool isFile() const {
|
||||
return ! bool(m_nMode && INETCOREFTP_FILEMODE_ISDIR);
|
||||
return (m_nMode & INETCOREFTP_FILEMODE_ISDIR) == 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user