Commit 87e091a2 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2052] Return order=0 when name comparison result is NONE

parent c09a49cd
......@@ -568,7 +568,7 @@ Name::partial_compare(const Name& other,
if ((nlabels == 0) &&
((last_label < labelcount_) ||
(last_label_other < other.labelcount_))) {
return (NameComparisonResult(chdiff, 0,
return (NameComparisonResult(0, 0,
NameComparisonResult::NONE));
} else {
return (NameComparisonResult(chdiff, nlabels,
......@@ -583,7 +583,7 @@ Name::partial_compare(const Name& other,
if ((nlabels == 0) &&
((last_label < labelcount_) ||
(last_label_other < other.labelcount_))) {
return (NameComparisonResult(cdiff, 0,
return (NameComparisonResult(0, 0,
NameComparisonResult::NONE));
} else {
return (NameComparisonResult(cdiff, nlabels,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment