From fb9d45d0e6e5333dd59d7bb0df5f8368ef423d48 Mon Sep 17 00:00:00 2001 From: ABV <> Date: Thu, 19 May 2011 10:52:04 +0000 Subject: [PATCH] OCC22355 Avoid annoying warnings in NCollection_SparseArray.hxx on 64-bit Linux with Intel compiler --- src/NCollection/NCollection_SparseArrayBase.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NCollection/NCollection_SparseArrayBase.hxx b/src/NCollection/NCollection_SparseArrayBase.hxx index 711e74a45c..7155c1203d 100755 --- a/src/NCollection/NCollection_SparseArrayBase.hxx +++ b/src/NCollection/NCollection_SparseArrayBase.hxx @@ -100,8 +100,8 @@ private: { Cell* abyte = Bits + i / BitsPerCell(); Cell amask = (Cell)( '\1' << ( i % BitsPerCell() ) ); - Cell anold = ( *abyte & amask ); - *abyte |= amask; + Cell anold = (Cell)( *abyte & amask ); + *abyte = (Cell)( *abyte | amask ); return ! anold; } @@ -110,7 +110,7 @@ private: { Cell* abyte = Bits + i / BitsPerCell(); Cell amask = (Cell)( '\1' << ( i % BitsPerCell() ) ); - return ( *abyte & amask ); + return (Cell)( *abyte & amask ); } //! Unset bit for i-th item; returns non-null if that bit @@ -119,8 +119,8 @@ private: { Cell* abyte = Bits + i / BitsPerCell(); Cell amask = (Cell)( '\1' << ( i % BitsPerCell() ) ); - Cell anold = ( *abyte & amask ); - *abyte &= ~amask; + Cell anold = (Cell)( *abyte & amask ); + *abyte = (Cell)( *abyte & ~amask ); return anold; }