diff --git a/include/boost/endian/buffers.hpp b/include/boost/endian/buffers.hpp index a76ccd1..890919b 100644 --- a/include/boost/endian/buffers.hpp +++ b/include/boost/endian/buffers.hpp @@ -23,7 +23,7 @@ #if defined(_MSC_VER) # pragma warning(push) -# pragma warning(disable:4365) // conversion ... signed/unsigned mismatch +# pragma warning(disable: 4127) // conditional expression is constant #endif #ifdef BOOST_ENDIAN_LOG diff --git a/test/buffer_test.cpp b/test/buffer_test.cpp index cb305f2..ab119b5 100644 --- a/test/buffer_test.cpp +++ b/test/buffer_test.cpp @@ -178,7 +178,7 @@ namespace test_buffer_type< big_uint8_buf_at>( 0x01, 0xFE ); test_buffer_type( 0x0102, 0xFE02 ); test_buffer_type( 0x01020304, 0xFE020304 ); - test_buffer_type( 0x0102030405060708ULL, 0xFE02030405060708LL ); + test_buffer_type( 0x0102030405060708ULL, 0xFE02030405060708ULL ); test_buffer_type< little_int8_buf_at>( 0x01, -0x01 ); test_buffer_type( 0x0102, -0x0102 ); @@ -188,7 +188,7 @@ namespace test_buffer_type< little_uint8_buf_at>( 0x01, 0xFE ); test_buffer_type( 0x0102, 0xFE02 ); test_buffer_type( 0x01020304, 0xFE020304 ); - test_buffer_type( 0x0102030405060708ULL, 0xFE02030405060708LL ); + test_buffer_type( 0x0102030405060708ULL, 0xFE02030405060708ULL ); test_buffer_type< big_int8_buf_t>( 0x01, -0x01 ); test_buffer_type( 0x0102, -0x0102 ); @@ -206,7 +206,7 @@ namespace test_buffer_type( 0x0102030405ULL, 0xFE02030405ULL ); test_buffer_type( 0x010203040506ULL, 0xFE0203040506ULL ); test_buffer_type( 0x01020304050607ULL, 0xFE020304050607ULL ); - test_buffer_type( 0x0102030405060708ULL, 0xFE02030405060708LL ); + test_buffer_type( 0x0102030405060708ULL, 0xFE02030405060708ULL ); std::cout << "test construction and assignment complete" << std::endl; }