From 3ee53a79db7388dccaf75b6c2777cee46fab1612 Mon Sep 17 00:00:00 2001 From: Nathan Burles Date: Mon, 1 Aug 2016 09:57:51 +0100 Subject: [PATCH] Fixes comparisons of IntervalSets --- runtime/Cpp/runtime/src/misc/IntervalSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/Cpp/runtime/src/misc/IntervalSet.cpp b/runtime/Cpp/runtime/src/misc/IntervalSet.cpp index dd41c6716..132313bf9 100755 --- a/runtime/Cpp/runtime/src/misc/IntervalSet.cpp +++ b/runtime/Cpp/runtime/src/misc/IntervalSet.cpp @@ -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());