diff options
-rw-r--r-- | sc/source/filter/inc/ftools.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/inc/ftools.hxx b/sc/source/filter/inc/ftools.hxx index 1fcfe6339f2f..81b0b44e688c 100644 --- a/sc/source/filter/inc/ftools.hxx +++ b/sc/source/filter/inc/ftools.hxx @@ -99,7 +99,7 @@ inline void set_flag( Type& rnBitField, Type nMask, bool bSet = true ) template< typename Type, typename InsertType > void insert_value( Type& rnBitField, InsertType nValue, sal_uInt8 nStartBit, sal_uInt8 nBitCount ) { - unsigned long nMask = ((1UL << nBitCount) - 1); + unsigned int nMask = ((1U << nBitCount) - 1); Type nNewValue = static_cast< Type >( nValue & nMask ); rnBitField = (rnBitField & ~(nMask << nStartBit)) | (nNewValue << nStartBit); } |