diff options
author | Yuri Sizov <11782833+YuriSizov@users.noreply.github.com> | 2023-03-27 20:14:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 20:14:47 +0200 |
commit | 19501f8eb19481b029f67ecf78e711d42f2fc431 (patch) | |
tree | 933ea3320b35bce6ba65ab1e1d1aa8ad662c90d4 /core/variant/variant.cpp | |
parent | cacf49999e3fb37281d66cc591ca8bebc5712d4d (diff) | |
parent | 843f5adbc523ad2511322b4f09b5ce5a3fb9e225 (diff) |
Merge pull request #75397 from YuriSizov/4.0-cherrypicks
Cherry-picks for the 4.0 branch (future 4.0.2) - 1st batch
Diffstat (limited to 'core/variant/variant.cpp')
-rw-r--r-- | core/variant/variant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/variant.cpp b/core/variant/variant.cpp index 2da9559873..fa3bb78913 100644 --- a/core/variant/variant.cpp +++ b/core/variant/variant.cpp @@ -2941,7 +2941,7 @@ uint32_t Variant::recursive_hash(int recursion_count) const { return hash_one_uint64((uint64_t)_data._int); } break; case FLOAT: { - return hash_murmur3_one_float(_data._float); + return hash_murmur3_one_double(_data._float); } break; case STRING: { return reinterpret_cast<const String *>(_data._mem)->hash(); @@ -3158,7 +3158,7 @@ uint32_t Variant::recursive_hash(int recursion_count) const { } return hash_fmix32(h); } else { - return hash_murmur3_one_float(0.0); + return hash_murmur3_one_double(0.0); } } break; |