This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.1.x by this push:
new 6cc4493 Makes sure the types are correct, avoiding compiler warnings
(#7523)
6cc4493 is described below
commit 6cc4493b33a90262c29faa0ce3c556eb86ea5a58
Author: Leif Hedstrom <[email protected]>
AuthorDate: Tue Feb 16 13:11:10 2021 -0700
Makes sure the types are correct, avoiding compiler warnings (#7523)
(cherry picked from commit dae3e763e49627ee24f5b6cac3863e1f0b74f013)
---
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 3a164c8..2910b4a 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<int>(sizeof(buff)), &idx, &skip);
REQUIRE(parse != 0);
- REQUIRE(idx == text.size());
+ REQUIRE(idx == static_cast<int>(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<int>(sizeof(buff)), &idx, &skip);
REQUIRE(parse != 0);
- REQUIRE(idx == text.size());
+ REQUIRE(idx == static_cast<int>(text.size()));
REQUIRE(0 == memcmp(ts::TextView(buff, idx), text));
heap->destroy();
};