diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-27 08:29:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:24:36 +0100 |
commit | 62e67d1a0a3577de9d8886b484c7b4af41be755e (patch) | |
tree | a9d82336e1a6ac7525eb75c150315e39b58023b9 | |
parent | 3a5ad6fd368794aeb0d1713e1a7718d6a9885f8c (diff) |
Apparently broken bitmask checks
Change-Id: Ie5749b43de5e47cfede4662e346dee194c454b2f
-rw-r--r-- | ucb/source/ucp/ftp/ftpdirp.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/ftp/ftpdirp.hxx b/ucb/source/ucp/ftp/ftpdirp.hxx index 54249ee8c12f..13d507475b37 100644 --- a/ucb/source/ucp/ftp/ftpdirp.hxx +++ b/ucb/source/ucp/ftp/ftpdirp.hxx @@ -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; } }; |