aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/crc/patches/w-shift-count-overflow.patch
blob: 033a31455e0626d17300fea588bde629a5516c4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- contrib/restricted/boost/crc/include/boost/crc.hpp	(index)
+++ contrib/restricted/boost/crc/include/boost/crc.hpp	(working tree)
@@ -1188,7 +1188,7 @@ namespace detail
                  )) & UCHAR_MAX ) ^ *new_dividend_bytes++;
 
                 // Complete the multi-bit altered modulo-2 polynomial division
-                remainder <<= CHAR_BIT;
+                remainder = (remainder << CHAR_BIT);
                 remainder ^= table[ index ];
             }