summaryrefslogtreecommitdiffstats
path: root/core/variant.cpp
diff options
context:
space:
mode:
authorAndreas Haas <Hinsbart@users.noreply.github.com>2017-04-14 17:51:05 +0200
committerGitHub <noreply@github.com>2017-04-14 17:51:05 +0200
commit6871ec708fb6475027055a3b54c31bacfdb0339d (patch)
tree22ac043cebe0003c524064385e095fecfd53854e /core/variant.cpp
parent4e7c5eb498f338e6157665976b975016bd54505c (diff)
parent8ff6e538336135837630e313027826e9bd8d036e (diff)
downloadredot-engine-6871ec708fb6475027055a3b54c31bacfdb0339d.tar.gz
Merge pull request #8393 from hpvb/fix-8081
Correct Variant::hash_compare()
Diffstat (limited to 'core/variant.cpp')
-rw-r--r--core/variant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant.cpp b/core/variant.cpp
index 6e675d07de..67ce8af483 100644
--- a/core/variant.cpp
+++ b/core/variant.cpp
@@ -2839,7 +2839,7 @@ uint32_t Variant::hash() const {
}
#define hash_compare_scalar(p_lhs, p_rhs) \
- ((p_lhs) == (p_rhs)) || (Math::is_nan(p_lhs) == Math::is_nan(p_rhs))
+ ((p_lhs) == (p_rhs)) || (Math::is_nan(p_lhs) && Math::is_nan(p_rhs))
#define hash_compare_vector2(p_lhs, p_rhs) \
(hash_compare_scalar((p_lhs).x, (p_rhs).x)) && \