summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2018-07-04 20:59:55 +0800
committerJohn Hodge <tpg@ucc.asn.au>2018-07-04 20:59:55 +0800
commit169fc6e5cc4482d509f2829ef302c135f983c1ea (patch)
treecdb94c948e291f2e9b97a73ca60ea08dbf321cc1 /src
parent2315092151c309f2d1a37b41d2ec2b6787dcc21c (diff)
downloadmrust-169fc6e5cc4482d509f2829ef302c135f983c1ea.tar.gz
string_view - Fix buggy comparison
Diffstat (limited to 'src')
-rw-r--r--src/include/string_view.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/string_view.hpp b/src/include/string_view.hpp
index a0cf596b..9a500192 100644
--- a/src/include/string_view.hpp
+++ b/src/include/string_view.hpp
@@ -78,7 +78,7 @@ private:
return *a < *b ? -1 : 1;
}
}
- if( a == m_end && b == m_end )
+ if( a == m_end && b == x.m_end )
return 0;
if( a == m_end )
return -1;