mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
OCC22355 Avoid annoying warnings in NCollection_SparseArray.hxx on 64-bit Linux with Intel compiler
This commit is contained in:
parent
92d1589b7f
commit
fb9d45d0e6
@ -100,8 +100,8 @@ private:
|
|||||||
{
|
{
|
||||||
Cell* abyte = Bits + i / BitsPerCell();
|
Cell* abyte = Bits + i / BitsPerCell();
|
||||||
Cell amask = (Cell)( '\1' << ( i % BitsPerCell() ) );
|
Cell amask = (Cell)( '\1' << ( i % BitsPerCell() ) );
|
||||||
Cell anold = ( *abyte & amask );
|
Cell anold = (Cell)( *abyte & amask );
|
||||||
*abyte |= amask;
|
*abyte = (Cell)( *abyte | amask );
|
||||||
return ! anold;
|
return ! anold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ private:
|
|||||||
{
|
{
|
||||||
Cell* abyte = Bits + i / BitsPerCell();
|
Cell* abyte = Bits + i / BitsPerCell();
|
||||||
Cell amask = (Cell)( '\1' << ( 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
|
//! Unset bit for i-th item; returns non-null if that bit
|
||||||
@ -119,8 +119,8 @@ private:
|
|||||||
{
|
{
|
||||||
Cell* abyte = Bits + i / BitsPerCell();
|
Cell* abyte = Bits + i / BitsPerCell();
|
||||||
Cell amask = (Cell)( '\1' << ( i % BitsPerCell() ) );
|
Cell amask = (Cell)( '\1' << ( i % BitsPerCell() ) );
|
||||||
Cell anold = ( *abyte & amask );
|
Cell anold = (Cell)( *abyte & amask );
|
||||||
*abyte &= ~amask;
|
*abyte = (Cell)( *abyte & ~amask );
|
||||||
return anold;
|
return anold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user