aboutsummaryrefslogtreecommitdiff
path: root/src/exact_value.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-04-15 11:51:05 +0100
committergingerBill <bill@gingerbill.org>2025-04-15 11:51:05 +0100
commitcfb8cc709c51e112789d68f2cdbe97d40d753167 (patch)
treea0becfc97a061e0a2261b224e6632ed98f6e8544 /src/exact_value.cpp
parent39363c401874584e3871caf694f297777a899d2c (diff)
parent2d5b85f9f99b505aa2e75f09d4c0d39d249cb72e (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/exact_value.cpp')
-rw-r--r--src/exact_value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp
index f4439688c..37751c8f1 100644
--- a/src/exact_value.cpp
+++ b/src/exact_value.cpp
@@ -955,7 +955,7 @@ gb_internal bool compare_exact_values(TokenKind op, ExactValue x, ExactValue y)
f64 a = x.value_float;
f64 b = y.value_float;
if (isnan(a) || isnan(b)) {
- return false; // Fixes #5004
+ return op == Token_NotEq;
}
switch (op) {