diff options
author | Mauro Sardara <msardara@cisco.com> | 2022-09-12 18:36:10 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2022-09-12 18:36:10 +0200 |
commit | a4c11477fee6f77440dc5353595f3c1390f765b5 (patch) | |
tree | a9364c060b04e707d458487bc98fc9b800542b9c /lib | |
parent | 6ee6b65ef03f8a479cccb2ae04e6b156f309f045 (diff) |
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 <msardara@cisco.com>
Change-Id: I6025c3e87d4d8cb6a1e5e1f68e856214f8aa81ed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/src/test/test_interest_manifest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<interest_manifest_header_t *> (buffer); interest_manifest_init (header, 0); |