diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-02-22 18:17:52 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-02-22 18:17:52 +0100 |
| commit | bb23648c7133a1827373bfbb8922504f20e0478c (patch) | |
| tree | 3bfb2b70b77b14712a6e8e07e3a0562d703dfbd3 /src/types.cpp | |
| parent | f6f3a760bcdbad183a4141738b19779e88ed7dfc (diff) | |
Also convert and promote bit_set types for #c_varargs
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp index c31b6e1bd..9f52ed17d 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2808,6 +2808,11 @@ gb_internal Type *c_vararg_promote_type(Type *type) { GB_ASSERT(type != nullptr); Type *core = core_type(type); + + if (core->kind == Type_BitSet) { + core = core_type(bit_set_to_int(core)); + } + if (core->kind == Type_Basic) { switch (core->Basic.kind) { case Basic_f32: |