From c3a8fe7b40465134e500d5698b1455d2181aed4f Mon Sep 17 00:00:00 2001 From: "Dr. David Alan Gilbert" Date: Sat, 30 Jan 2021 17:30:39 +0000 Subject: cppcheck: Clean up signed 32 bit shift by 31 cppcheck moans about 1< --- lotuswordpro/source/filter/explode.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/explode.cxx b/lotuswordpro/source/filter/explode.cxx index 359aab5f36cd..4b4ffa25c6cf 100644 --- a/lotuswordpro/source/filter/explode.cxx +++ b/lotuswordpro/source/filter/explode.cxx @@ -197,7 +197,7 @@ sal_uInt32 Decompression::ReadBits(sal_uInt16 iCount, sal_uInt32 & nBits) m_nBitsLeft -= iCount; /* return need bits, zeroing the bits above that */ - nBits = val & ((1 << iCount) - 1); + nBits = val & ((1U << iCount) - 1); return 0; } -- cgit