summaryrefslogtreecommitdiff
path: root/src/hir/path.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/path.hpp')
-rw-r--r--src/hir/path.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir/path.hpp b/src/hir/path.hpp
index 57a8330b..c791812d 100644
--- a/src/hir/path.hpp
+++ b/src/hir/path.hpp
@@ -65,8 +65,8 @@ struct SimplePath
}
bool operator<(const SimplePath& x) const {
if( m_crate_name < x.m_crate_name ) return true;
- if( m_components < x.m_components ) return true;
- return false;
+ if( m_crate_name > x.m_crate_name ) return false;
+ return ( m_components < x.m_components );
}
Ordering ord(const SimplePath& x) const {
auto rv = ::ord(m_crate_name, x.m_crate_name);