mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
Handle more cases where ExactValue_Float was being handled but not for ExactValue_Rational
This commit is contained in:
1 parent
19f7b5e2e2
commit
29b681b43d
4 files changed
+22
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user