diff --git a/proxy/hdrs/unit_tests/test_HdrUtils.cc b/proxy/hdrs/unit_tests/test_HdrUtils.cc index 3a164c8b62f..2910b4a99a1 100644 --- a/proxy/hdrs/unit_tests/test_HdrUtils.cc +++ b/proxy/hdrs/unit_tests/test_HdrUtils.cc @@ -160,7 +160,7 @@ TEST_CASE("HdrUtils 2", "[proxy][hdrutils]") int skip = 0; auto parse = mime_hdr_print(heap, mime.m_mime, buff, static_cast(sizeof(buff)), &idx, &skip); REQUIRE(parse != 0); - REQUIRE(idx == text.size()); + REQUIRE(idx == static_cast(text.size())); REQUIRE(0 == memcmp(ts::TextView(buff, idx), text)); heap->destroy(); }; @@ -203,7 +203,7 @@ TEST_CASE("HdrUtils 3", "[proxy][hdrutils]") int skip = 0; auto parse = mime_hdr_print(heap, mime.m_mime, buff, static_cast(sizeof(buff)), &idx, &skip); REQUIRE(parse != 0); - REQUIRE(idx == text.size()); + REQUIRE(idx == static_cast(text.size())); REQUIRE(0 == memcmp(ts::TextView(buff, idx), text)); heap->destroy(); };