Skip to content

Commit

Permalink
Merge pull request #28 from nburles/fix-intervalset-comparisons
Browse files Browse the repository at this point in the history
Fixes comparisons of IntervalSets
  • Loading branch information
mike-lischke authored Aug 1, 2016
2 parents f3110fd + 3ee53a7 commit 8bbdbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/Cpp/runtime/src/misc/IntervalSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ bool IntervalSet::operator == (const IntervalSet &other) const {
if (_intervals.empty() && other._intervals.empty())
return true;

if (_intervals.empty() || other._intervals.empty())
if (_intervals.size() != other._intervals.size())
return false;

return std::equal(_intervals.begin(), _intervals.end(), other._intervals.begin());
Expand Down

0 comments on commit 8bbdbe0

Please sign in to comment.