From c08b8a94ea082f241815dc30711cb42cf56016d4 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 24 May 2019 18:55:27 +0300 Subject: [PATCH] Fix sign extension (warning 4826.) Closes #48. --- include/boost/system/error_code.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 4131ee9..f0a151e 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -784,7 +784,7 @@ inline std::size_t hash_value( error_code const & ec ) if( id == 0 ) { - id = reinterpret_cast( &cat ); + id = reinterpret_cast( &cat ); } boost::ulong_long_type hv = ( boost::ulong_long_type( 0xCBF29CE4 ) << 32 ) + 0x84222325;