From a4c11477fee6f77440dc5353595f3c1390f765b5 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 12 Sep 2022 18:36:10 +0200 Subject: fix(interest_manifest.h): set correct type to pos variable when using it in interest_manifest_foreach_suffix Ref: HICN-780 Signed-off-by: Mauro Sardara Change-Id: I6025c3e87d4d8cb6a1e5e1f68e856214f8aa81ed --- lib/src/test/test_interest_manifest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/src') diff --git a/lib/src/test/test_interest_manifest.cc b/lib/src/test/test_interest_manifest.cc index da7531fd3..25ac83728 100644 --- a/lib/src/test/test_interest_manifest.cc +++ b/lib/src/test/test_interest_manifest.cc @@ -152,7 +152,7 @@ TEST_F (InterestManifestTest, SerializeDeserialize) EXPECT_THAT (header->n_suffixes, ::testing::Eq (n_suffixes)); int i = 0; - int pos; + unsigned long pos; interest_manifest_foreach_suffix (header, suffix, pos) { if (pos == 0) @@ -169,7 +169,7 @@ TEST_F (InterestManifestTest, SerializeDeserialize) TEST_F (InterestManifestTest, ForEach) { - int pos; + unsigned long pos; hicn_name_suffix_t *suffix = nullptr; auto header = reinterpret_cast (buffer); interest_manifest_init (header, 0); -- cgit 1.2.3-korg