From 876de479530cd111ffd08b2957a172d562c3837d Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Wed, 13 Jul 2022 08:57:31 +0100 Subject: [PATCH] Squash a warning --- tests/src/unit-custom-integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {