From 62e67d1a0a3577de9d8886b484c7b4af41be755e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Jan 2014 08:29:26 +0100 Subject: [PATCH] Apparently broken bitmask checks Change-Id: Ie5749b43de5e47cfede4662e346dee194c454b2f --- ucb/source/ucp/ftp/ftpdirp.hxx | 4 ++-- 1 file 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; } };