Handle more cases where ExactValue_Float was being handled but not for ExactValue_Rational

This commit is contained in:
gingerBill committed 2026-09-29 15:21:00 +01:00
1 parent 19f7b5e2e2
commit 29b681b43d
4 files changed
+22 -1

No files matched your search

+5
View File
@@ -4873,6 +4873,11 @@ gb_internal void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Typ
fail = true;
}
break;
case ExactValue_Rational:
if (big_int_is_zero(&y->value.value_rational->num)) {
fail = true;
}
break;
}
if (fail) {