From 1e6c9a5a5a44184c771df1f7d8f3563fe01960c4 Mon Sep 17 00:00:00 2001 From: oficsu <35731382+oficsu@users.noreply.github.com> Date: Thu, 12 Mar 2020 09:28:09 +0300 Subject: [PATCH] replace C-style cast with static_cast --- test/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);