From 32559478544882abd3c840957ed09eed5580dbb2 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 15 Jan 2002 16:24:34 +0000 Subject: [PATCH] use type bool for single bit bitfields --- src/ca/cacIO.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ca/cacIO.h b/src/ca/cacIO.h index bebeb3aa0..763dc08f2 100644 --- a/src/ca/cacIO.h +++ b/src/ca/cacIO.h @@ -95,9 +95,9 @@ public: bool writePermit () const; bool operatorConfirmationRequest () const; private: - unsigned f_readPermit:1; - unsigned f_writePermit:1; - unsigned f_operatorConfirmationRequest:1; + bool f_readPermit:1; + bool f_writePermit:1; + bool f_operatorConfirmationRequest:1; }; class epicsShareClass cacChannelNotify { @@ -266,17 +266,17 @@ inline void caAccessRights::clrOperatorConfirmationRequest () inline bool caAccessRights::readPermit () const { - return static_cast < bool > ( this->f_readPermit ); + return this->f_readPermit; } inline bool caAccessRights::writePermit () const { - return static_cast < bool > ( this->f_writePermit ); + return this->f_writePermit; } inline bool caAccessRights::operatorConfirmationRequest () const { - return static_cast < bool > ( this->f_operatorConfirmationRequest ); + return this->f_operatorConfirmationRequest; } #endif // ifndef cacIOh