Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Jul 12, 2022
1 parent c7ed15d commit 569b493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit_string_tests.cpp
Expand Up @@ -19,7 +19,7 @@

IUTEST(UnitStringTest, Stricmp)
{
const char negative = -1;
const char negative = static_cast<char>(-1);
const char negative_sample[] = { 'a', 'a', 'a', negative, '\0' };
IUTEST_EXPECT_EQ(0, ::iutest::detail::iu_stricmp("AAA", "aaa"));
IUTEST_EXPECT_LT(0, ::iutest::detail::iu_stricmp("AAAa", "aaa"));
Expand All @@ -31,7 +31,7 @@ IUTEST(UnitStringTest, Stricmp)

IUTEST(UnitStringTest, OwnStricmp)
{
const char negative = -1;
const char negative = static_cast<char>(-1);
const char negative_sample[] = { 'a', 'a', 'a', negative, '\0' };
IUTEST_EXPECT_EQ(0, ::iutest::detail::wrapper::iu_stricmp("AAA", "aaa"));
IUTEST_EXPECT_LT(0, ::iutest::detail::wrapper::iu_stricmp("AAAa", "aaa"));
Expand Down

0 comments on commit 569b493

Please sign in to comment.