mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Also convert and promote bit_set types for #c_varargs
This commit is contained in:
@@ -2808,6 +2808,11 @@ gb_internal Type *c_vararg_promote_type(Type *type) {
|
|||||||
GB_ASSERT(type != nullptr);
|
GB_ASSERT(type != nullptr);
|
||||||
|
|
||||||
Type *core = core_type(type);
|
Type *core = core_type(type);
|
||||||
|
|
||||||
|
if (core->kind == Type_BitSet) {
|
||||||
|
core = core_type(bit_set_to_int(core));
|
||||||
|
}
|
||||||
|
|
||||||
if (core->kind == Type_Basic) {
|
if (core->kind == Type_Basic) {
|
||||||
switch (core->Basic.kind) {
|
switch (core->Basic.kind) {
|
||||||
case Basic_f32:
|
case Basic_f32:
|
||||||
|
|||||||
Reference in New Issue
Block a user