Skip to content

Commit c1519bc

Browse files
committed
Fix the NumberEquals logic.
1 parent 90b7391 commit c1519bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firestore/core/src/model/value_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ ComparisonResult UpperBoundCompare(const google_firestore_v1_Value& left,
705705

706706
bool NumberEquals(const google_firestore_v1_Value& left,
707707
const google_firestore_v1_Value& right) {
708-
if (IsDecimal128Value(left) || IsDecimal128Value(right)) {
708+
if (IsDecimal128Value(left) && IsDecimal128Value(right)) {
709709
return Compare128BitNumbers(left, right) == util::ComparisonResult::Same;
710710
}
711711

0 commit comments

Comments
 (0)