diff --git a/test/test.cpp b/test/test.cpp index d0cd335..c885c55 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -86,7 +86,7 @@ TEST_CASE("enum_cast") { constexpr auto cr = enum_cast(-12); REQUIRE(cr.value() == Color::RED); REQUIRE(enum_cast(7).value() == Color::GREEN); - REQUIRE(enum_cast((int)cm[2]).value() == Color::BLUE); + REQUIRE(enum_cast(static_cast(cm[2])).value() == Color::BLUE); REQUIRE_FALSE(enum_cast(0).has_value()); constexpr auto no = enum_cast(1);