diff options
Diffstat (limited to 'filter/source/msfilter/mscodec.cxx')
-rw-r--r-- | filter/source/msfilter/mscodec.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/mscodec.cxx b/filter/source/msfilter/mscodec.cxx index b32a8a2e14b9..83dee6c37223 100644 --- a/filter/source/msfilter/mscodec.cxx +++ b/filter/source/msfilter/mscodec.cxx @@ -44,7 +44,7 @@ namespace { template< typename Type > inline void lclRotateLeft( Type& rnValue, int nBits ) { - assert( + OSL_ASSERT( nBits >= 0 && sal::static_int_cast< unsigned int >(nBits) < sizeof( Type ) * 8 ); rnValue = static_cast< Type >( (rnValue << nBits) | (rnValue >> (sizeof( Type ) * 8 - nBits)) ); @@ -54,7 +54,7 @@ inline void lclRotateLeft( Type& rnValue, int nBits ) template< typename Type > inline void lclRotateLeft( Type& rnValue, sal_uInt8 nBits, sal_uInt8 nWidth ) { - assert( (nBits < nWidth) && (nWidth < sizeof( Type ) * 8) ); + OSL_ASSERT( (nBits < nWidth) && (nWidth < sizeof( Type ) * 8) ); Type nMask = static_cast< Type >( (1UL << nWidth) - 1 ); rnValue = static_cast< Type >( ((rnValue << nBits) | ((rnValue & nMask) >> (nWidth - nBits))) & nMask ); |