diff --git a/runtime/test/zserio/TypesTest.cpp b/runtime/test/zserio/TypesTest.cpp index 7afbcf4..175301c 100644 --- a/runtime/test/zserio/TypesTest.cpp +++ b/runtime/test/zserio/TypesTest.cpp @@ -49,7 +49,7 @@ void testIntOperators(typename T::value_type minValue = NumericLimits::min()) Int64 value = +valueMin; value = -valueMin; value = valueMin + valueMax; - value = valueMax - valueMin; + value = valueMax - value0; value = value0 * valueMax; if (valueMax != 0) // == 0 for Int1 {