We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dadcbd5 + e7a1892 commit fcd59aeCopy full SHA for fcd59ae
flow/Arena.h
@@ -670,7 +670,7 @@ inline bool operator==(const StringRef& lhs, const StringRef& rhs) {
670
if (lhs.size() == 0 && rhs.size() == 0) {
671
return true;
672
}
673
- return lhs.size() == rhs.size() && !memcmp(lhs.begin(), rhs.begin(), lhs.size());
+ return lhs.size() == rhs.size() && memcmp(lhs.begin(), rhs.begin(), lhs.size()) == 0;
674
675
inline bool operator<(const StringRef& lhs, const StringRef& rhs) {
676
if (std::min(lhs.size(), rhs.size()) > 0) {
0 commit comments