diff options
| author | mtarik34b <mtarik34b@gmail.com> | 2025-04-15 05:00:36 +0200 |
|---|---|---|
| committer | mtarik34b <mtarik34b@gmail.com> | 2025-04-15 05:00:36 +0200 |
| commit | 313d7d84bcfe086201640d23b449b77bdc08b135 (patch) | |
| tree | 06879553f9b871775cb84f4e169eeafd2091a142 /src | |
| parent | 11da543f26fff002da8281757f141f6a5f690666 (diff) | |
Ensure NaN != any_float_value evaluates to true for constant NaN values
Diffstat (limited to 'src')
| -rw-r--r-- | src/exact_value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp index f4439688c..e7981a978 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; // Fixes #5004 } switch (op) { |