aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-04-10 12:32:26 +0100
committergingerBill <bill@gingerbill.org>2024-04-10 12:32:26 +0100
commit3dfd61dd4f1aec7525a8d6820c9c977f6a3ed14e (patch)
tree450c85b985d9305587abb457356864bb46d591f6 /src/check_builtin.cpp
parent25f781d64b37995d98b2d60f2a6dbef0088d94ee (diff)
Make `intrinsics.overflow_*` NOT `#optional_ok`
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index d8fad487b..c3c217ec7 100644
--- a/src/check_builtin.cpp
+++ b/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;