aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-02-02 14:52:42 +0000
committergingerBill <bill@gingerbill.org>2024-02-02 14:52:42 +0000
commitbf90b61908661ad314206e5d37769004289ed070 (patch)
tree6c286c60e079f2fdec400f3f4e58d7c40b4a6daa /src/check_builtin.cpp
parentae0a5b1a873dfd7d1aa8d6b6e6cb95edc10f3bf9 (diff)
Fix `type_elem_type` for `complex32` and `quaternion64`
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 09ca0bc23..e1cb43ec1 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -4892,8 +4892,10 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
switch (bt->kind) {
case Type_Basic:
switch (bt->Basic.kind) {
+ case Basic_complex32: operand->type = t_f16; break;
case Basic_complex64: operand->type = t_f32; break;
case Basic_complex128: operand->type = t_f64; break;
+ case Basic_quaternion64: operand->type = t_f16; break;
case Basic_quaternion128: operand->type = t_f32; break;
case Basic_quaternion256: operand->type = t_f64; break;
}