MSHV-269-Non-Gendered/crc_patch.diff
2024-02-12 11:29:54 +11:00

14 lines
651 B
Diff

Index: crc.hpp
===================================================================
--- crc.hpp (revision 7623)
+++ crc.hpp (working copy)
@@ -347,7 +347,7 @@
#if defined(__EDG_VERSION__) && __EDG_VERSION__ <= 243
static const least sig_bits = (~( ~( 0ul ) << Bits )) ;
#else
- BOOST_STATIC_CONSTANT( least, sig_bits = (~( ~(least( 0u )) << Bits )) );
+ BOOST_STATIC_CONSTANT( least, sig_bits = (~( (unsigned int)(~(least( 0ul ))) << Bits )) );
#endif
#if defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 2
// Work around a weird bug that ICEs the compiler in build_c_cast