In structures, put minSuffixComponents before maxSuffixComponents
diff --git a/ndn-cpp/Interest.cpp b/ndn-cpp/Interest.cpp
index 2fda538..b99c3cd 100644
--- a/ndn-cpp/Interest.cpp
+++ b/ndn-cpp/Interest.cpp
@@ -12,8 +12,8 @@
void Interest::set(struct ndn_Interest &interestStruct)
{
name_.set(interestStruct.name);
- maxSuffixComponents_ = interestStruct.maxSuffixComponents;
minSuffixComponents_ = interestStruct.minSuffixComponents;
+ maxSuffixComponents_ = interestStruct.maxSuffixComponents;
publisherPublicKeyDigest_.clear();
if (interestStruct.publisherPublicKeyDigest)
@@ -33,8 +33,8 @@
void Interest::get(struct ndn_Interest &interestStruct)
{
name_.get(interestStruct.name);
- interestStruct.maxSuffixComponents = maxSuffixComponents_;
interestStruct.minSuffixComponents = minSuffixComponents_;
+ interestStruct.maxSuffixComponents = maxSuffixComponents_;
interestStruct.publisherPublicKeyDigestLength = publisherPublicKeyDigest_.size();
if (publisherPublicKeyDigest_.size() > 0)