From 97eeb25adc68fbc0ad797f4a2a1e701c909b2265 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 7 Mar 2025 10:44:34 +0000 Subject: [PATCH] Fix #4244 --- src/check_expr.cpp | 3 +-- 1 file changed, 1 insertion(+), 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;