Skip to content

Commit 596a73d

Browse files
committed
Fix type
1 parent d43a0ef commit 596a73d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

firestore/src/main/composite_filter_main.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ bool operator==(const CompositeFilterInternal& lhs,
5858
if (lhs.op_ != rhs.op_) return false;
5959
const std::vector<std::shared_ptr<FilterInternal>>& lhs_filters = lhs.filters_;
6060
const std::vector<std::shared_ptr<FilterInternal>>& rhs_filters = rhs.filters_;
61-
const unsigned long size = lhs_filters.size();
62-
if (size != rhs_filters.size()) return false;
63-
for (int i = 0; i < size; i++) {
61+
if (lhs_filters.size() != rhs_filters.size()) return false;
62+
for (int i = 0; i < lhs_filters.size(); i++) {
6463
if (lhs_filters[i] != rhs_filters[i] && *lhs_filters[i] != *rhs_filters[i]) return false;
6564
}
6665
return true;

0 commit comments

Comments
 (0)