Skip to content

Commit e7a1892

Browse files
committed
fixed a compiler warning
1 parent d00c985 commit e7a1892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/Arena.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ inline bool operator==(const StringRef& lhs, const StringRef& rhs) {
670670
if (lhs.size() == 0 && rhs.size() == 0) {
671671
return true;
672672
}
673-
return lhs.size() == rhs.size() && !memcmp(lhs.begin(), rhs.begin(), lhs.size());
673+
return lhs.size() == rhs.size() && memcmp(lhs.begin(), rhs.begin(), lhs.size()) == 0;
674674
}
675675
inline bool operator<(const StringRef& lhs, const StringRef& rhs) {
676676
if (std::min(lhs.size(), rhs.size()) > 0) {

0 commit comments

Comments
 (0)