Merge pull request #74588 from puchik/float-variant-nan-inequality

Support numeric/binary hash comparison for floats derived from Variants (as well as existing semantic comparison)
This commit is contained in:
Rémi Verschelde
2023-09-27 14:03:34 +02:00
4 changed files with 10 additions and 6 deletions

View File

@@ -210,7 +210,7 @@ bool Dictionary::recursive_equal(const Dictionary &p_dictionary, int recursion_c
recursion_count++;
for (const KeyValue<Variant, Variant> &this_E : _p->variant_map) {
HashMap<Variant, Variant, VariantHasher, StringLikeVariantComparator>::ConstIterator other_E(p_dictionary._p->variant_map.find(this_E.key));
if (!other_E || !this_E.value.hash_compare(other_E->value, recursion_count)) {
if (!other_E || !this_E.value.hash_compare(other_E->value, recursion_count, false)) {
return false;
}
}