Avoid signed integer overflow in endian_arithmetic_test

This commit is contained in:
Peter Dimov
2019-04-28 04:12:09 +03:00
parent c59eb627ad
commit dad7086b37

View File

@@ -138,7 +138,8 @@ template<class T> void test( T const& x )
int main()
{
test( 0x01020304 );
test( 0xF1F2 );
test( 0x01020304u );
return boost::report_errors();
}