fix c_vararg bit_set

Fixes #4051
This commit is contained in:
Laytan Laats
2024-08-11 17:00:49 +02:00
parent 8a67221bd4
commit e3f375afd8
3 changed files with 17 additions and 9 deletions
+1 -4
View File
@@ -2960,10 +2960,7 @@ 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));
}
GB_ASSERT(core->kind != Type_BitSet);
if (core->kind == Type_Basic) {
switch (core->Basic.kind) {