diff --git a/tests/src/unit-custom-integer.cpp b/tests/src/unit-custom-integer.cpp index 9978f2520..e6c553bf1 100644 --- a/tests/src/unit-custom-integer.cpp +++ b/tests/src/unit-custom-integer.cpp @@ -48,7 +48,7 @@ class wrapped_int // allow implicit conversions from any builtin types that `T` allows conversions from template::value && std::is_arithmetic::value>::type> - wrapped_int(T2 val) : m_val(val) {} + wrapped_int(T2 val) : m_val(static_cast(val)) {} bool operator==(const wrapped_int& other) const {