From dad7086b37e98f166a1da3259271833f1bf74776 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 28 Apr 2019 04:12:09 +0300 Subject: [PATCH] Avoid signed integer overflow in endian_arithmetic_test --- test/endian_arithmetic_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/endian_arithmetic_test.cpp b/test/endian_arithmetic_test.cpp index d127b5b..a829a3a 100644 --- a/test/endian_arithmetic_test.cpp +++ b/test/endian_arithmetic_test.cpp @@ -138,7 +138,8 @@ template void test( T const& x ) int main() { - test( 0x01020304 ); + test( 0xF1F2 ); + test( 0x01020304u ); return boost::report_errors(); }