mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update naming of enum const.
This commit is contained in:
@@ -4349,7 +4349,7 @@ static bool sema_generate_parameterized_name_to_scratch(SemaContext *context, Mo
|
||||
}
|
||||
else if (type->type_kind == TYPE_ENUM)
|
||||
{
|
||||
Decl *enumm = param->const_expr.enum_err_val;
|
||||
Decl *enumm = param->const_expr.enum_val;
|
||||
type_mangle_introspect_name_to_buffer(enumm->type->canonical);
|
||||
scratch_buffer_append(mangled ? "_" : ":");
|
||||
scratch_buffer_append(enumm->name);
|
||||
|
||||
Reference in New Issue
Block a user