From 10877d3667efd4ca69b760f62179c53c75f859d2 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 23 Dec 2017 04:47:54 +0200 Subject: [PATCH] Remove one more integer overflow --- test/endian_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/endian_test.cpp b/test/endian_test.cpp index dd6ca2e..75bd170 100644 --- a/test/endian_test.cpp +++ b/test/endian_test.cpp @@ -76,7 +76,7 @@ namespace Endian v3( static_cast( 1 ) ); - Endian x(static_cast(v+v3)); + Endian x(static_cast(v2+v3)); if ( x == x ) // silence warning return; }