commit | dcfa963d0eae807388e2ebb2cc4ff562dd466012 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Mon Jan 07 16:38:19 2013 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Mon Jan 07 16:38:19 2013 -0800 |
tree | bf0d6a50f3548d62d67102688084e9ec9fde1ec4 | |
parent | c9eb68f81899a9c94c5ed78991eae6015b0e2c8d [diff] [blame] |
Small changes to suppress warnings
diff --git a/src/ccnx-name.cpp b/src/ccnx-name.cpp index 28761dd..a59cf8a 100644 --- a/src/ccnx-name.cpp +++ b/src/ccnx-name.cpp
@@ -254,7 +254,7 @@ Name::getPartialName(int start, int n) const { int size = m_comps.size(); - if (start < 0 || start >= size || n > 0 && start + n > size) + if (start < 0 || start >= size || (n > 0 && start + n > size)) { stringstream ss(stringstream::out); ss << "getPartialName() parameter out of range! ";