aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp5
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: