diff --git a/compiler-rt/lib/orc/unittests/adt_test.cpp b/compiler-rt/lib/orc/unittests/adt_test.cpp index 3c34b87f68615..dec636e837ddd 100644 --- a/compiler-rt/lib/orc/unittests/adt_test.cpp +++ b/compiler-rt/lib/orc/unittests/adt_test.cpp @@ -72,7 +72,7 @@ TEST(ADTTest, StringViewConstructFromCharPtr) { EXPECT_FALSE(S.empty()) << "Span should be non-empty"; EXPECT_EQ(S.size(), StrLen) << "Span has unexpected size"; - EXPECT_EQ(std::distance(S.begin(), S.end()), StrLen) + EXPECT_EQ(static_cast(std::distance(S.begin(), S.end())), StrLen) << "Unexpected iterator range size"; EXPECT_EQ(S.data(), &Str[0]) << "Span data has unexpected value"; for (unsigned I = 0; I != S.size(); ++I)