From: ABV <> Date: Thu, 19 May 2011 10:52:04 +0000 (+0000) Subject: OCC22355 Avoid annoying warnings in NCollection_SparseArray.hxx on 64-bit Linux with... X-Git-Tag: V6_5_1~23 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=fb9d45d0e6e5333dd59d7bb0df5f8368ef423d48;p=occt-copy.git OCC22355 Avoid annoying warnings in NCollection_SparseArray.hxx on 64-bit Linux with Intel compiler --- 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; }