aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-03-07 10:44:34 +0000
committergingerBill <bill@gingerbill.org>2025-03-07 10:44:34 +0000
commit97eeb25adc68fbc0ad797f4a2a1e701c909b2265 (patch)
tree90090858f378ed5ddbda92c688c43e425079a258 /src/check_expr.cpp
parentaf37ca1286ce84b9eeb51b47ad19f83bfcdde7cc (diff)
Fix #4244
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 46868aff2..287fbb37d 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -4508,8 +4508,7 @@ gb_internal void convert_to_typed(CheckerContext *c, Operand *operand, Type *tar
} else {
switch (operand->type->Basic.kind) {
case Basic_UntypedBool:
- if (!is_type_boolean(target_type) &&
- !is_type_integer(target_type)) {
+ if (!is_type_boolean(target_type)) {
operand->mode = Addressing_Invalid;
convert_untyped_error(c, operand, target_type);
return;