diff options
Diffstat (limited to 'common/dcl.cpp')
-rw-r--r-- | common/dcl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/dcl.cpp b/common/dcl.cpp index 75a533aa9d..7c2fc2ce80 100644 --- a/common/dcl.cpp +++ b/common/dcl.cpp @@ -98,7 +98,7 @@ uint32 DecompressorDCL::getBitsLSB(int n) { // Fetching more data to buffer if needed if (_nBits < n) fetchBitsLSB(); - uint32 ret = (_dwBits & ~((~0) << n)); + uint32 ret = (_dwBits & ~(~0UL << n)); _dwBits >>= n; _nBits -= n; return ret; |