diff options
author | Angelo Mantellini <manangel@cisco.com> | 2019-03-08 15:35:31 +0100 |
---|---|---|
committer | Angelo Mantellini <manangel@cisco.com> | 2019-03-08 15:46:13 +0100 |
commit | 83cb1b630a3b9da5ca92814de1bac4e7f0bdfb71 (patch) | |
tree | 767a67667da286cc414d9b7099fd5b524dce40e7 /libtransport/src/hicn/transport/protocols/manifest_indexing_manager.cc | |
parent | 6aaef596f68a514036d5212fc8697bdaf371e5af (diff) |
[HICN-102] Remove warnings and compilation errors in hicn on windows
Change-Id: Ibb5d90fe35097a29fa6edccd3c7859d043888717
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/protocols/manifest_indexing_manager.cc')
-rw-r--r-- | libtransport/src/hicn/transport/protocols/manifest_indexing_manager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.cc b/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.cc index 1afb4eaac..2d7d8de3e 100644 --- a/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.cc +++ b/libtransport/src/hicn/transport/protocols/manifest_indexing_manager.cc @@ -111,7 +111,7 @@ bool ManifestIndexManager::onManifest( // Send as many manifest as required for filling window. do { segment_count += segments_in_manifest; - next_manifest_ += segments_in_manifest; + next_manifest_ += (uint32_t)segments_in_manifest; Interest::Ptr interest = getPacket(); name.setSuffix(next_manifest_); @@ -156,7 +156,7 @@ bool ManifestIndexManager::onContentObject( bool ret = false; - auto it = suffix_hash_map_.find(segment); + auto it = suffix_hash_map_.find((const unsigned int)segment); if (it != suffix_hash_map_.end()) { auto hash_type = static_cast<utils::CryptoHashType>(it->second.second); auto data_packet_digest = content_object.computeDigest(it->second.second); |