diff options
-rw-r--r-- | sfx2/source/bastyp/bitset.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/bitset.cxx b/sfx2/source/bastyp/bitset.cxx index 665209b4c554..8a49a02661c9 100644 --- a/sfx2/source/bastyp/bitset.cxx +++ b/sfx2/source/bastyp/bitset.cxx @@ -29,7 +29,7 @@ IndexBitSet& IndexBitSet::operator-=(sal_uInt16 nBit) { sal_uInt16 nBlock = nBit / 32; - sal_uInt32 nBitVal = 1 << (nBit % 32); + sal_uInt32 nBitVal = 1U << (nBit % 32); if ( nBlock >= nBlocks ) return *this; @@ -48,7 +48,7 @@ IndexBitSet& IndexBitSet::operator-=(sal_uInt16 nBit) IndexBitSet& IndexBitSet::operator|=( sal_uInt16 nBit ) { sal_uInt16 nBlock = nBit / 32; - sal_uInt32 nBitVal = 1 << (nBit % 32); + sal_uInt32 nBitVal = 1U << (nBit % 32); if ( nBlock >= nBlocks ) { @@ -78,7 +78,7 @@ IndexBitSet& IndexBitSet::operator|=( sal_uInt16 nBit ) bool IndexBitSet::Contains( sal_uInt16 nBit ) const { sal_uInt16 nBlock = nBit / 32; - sal_uInt32 nBitVal = 1 << (nBit % 32); + sal_uInt32 nBitVal = 1U << (nBit % 32); if ( nBlock >= nBlocks ) return false; |