This commit is contained in:
gingerBill
2025-03-07 10:44:34 +00:00
parent af37ca1286
commit 97eeb25adc

View File

@@ -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;