From 4903374ff899bab6d1dd5485a71dbf53ec21c209 Mon Sep 17 00:00:00 2001 From: Leif Hedstrom Date: Sun, 14 Feb 2021 10:43:13 -0700 Subject: [PATCH] Makes sure the types are correct, avoiding compiler warnings --- proxy/hdrs/unit_tests/test_HdrUtils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); };