This commit is contained in:
gingerBill
2025-04-15 11:51:05 +01:00
3 changed files with 48 additions and 34 deletions

View File

@@ -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) {