Pārlūkot izejas kodu

Make `intrinsics.overflow_*` NOT `#optional_ok`

gingerBill 1 gadu atpakaļ
vecāks
revīzija
3dfd61dd4f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/check_builtin.cpp

+ 2 - 2
src/check_builtin.cpp

@@ -4089,8 +4089,8 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
 				}
 				}
 			}
 			}
 
 
-			operand->mode = Addressing_OptionalOk;
-			operand->type = default_type(x.type);
+			operand->mode = Addressing_Value;
+			operand->type = make_optional_ok_type(default_type(x.type));
 		}
 		}
 		break;
 		break;