diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 12:03:34 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 12:03:34 +0100 |
| commit | 891cf54b5c56bd31bcfdac14f0b72d489999bffc (patch) | |
| tree | 0a180ef1f60e749611c67e8de4724e3af748aa48 /src/types.cpp | |
| parent | 3ba19d94cfe9fbef9ac9c26e0bb49c54d568919c (diff) | |
Add `f16` to `#c_vararg` promotion rules
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp index c3a5fb539..92b187cdb 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2923,11 +2923,14 @@ gb_internal Type *c_vararg_promote_type(Type *type) { if (core->kind == Type_Basic) { switch (core->Basic.kind) { + case Basic_f16: case Basic_f32: case Basic_UntypedFloat: return t_f64; + case Basic_f16le: case Basic_f32le: return t_f64le; + case Basic_f16be: case Basic_f32be: return t_f64be; |