Skip to content

Commit

Permalink
adjust where static_array is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexu committed Aug 5, 2024
1 parent f963069 commit d05b2f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/aro/Parser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3079,12 +3079,10 @@ fn directDeclarator(p: *Parser, base_type: Type, d: *Declarator, kind: Declarato
arr_ty.len = max_elems;
}
res_ty.data = .{ .array = arr_ty };
res_ty.specifier = .array;
res_ty.specifier = if (static != null) .static_array else .array;
}

try res_ty.combine(outer);
if (static != null)
res_ty.specifier = .static_array;
return res_ty;
} else if (p.eatToken(.l_paren)) |l_paren| {
d.func_declarator = l_paren;
Expand Down

0 comments on commit d05b2f3

Please sign in to comment.