Correct order for indices in array declaration
In C, the order in the declaration of variables is the same as for access
This commit is contained in:
parent
aea82e79b0
commit
96054a67b6
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ let rec pp_array_decl cty =
|
|||
match cty with
|
||||
| Cty_arr(n, cty') ->
|
||||
let ty, s = pp_array_decl cty' in
|
||||
ty, sprintf "%s[%d]" s n
|
||||
ty, sprintf "[%d]%s" n s
|
||||
| _ -> cty, ""
|
||||
|
||||
let rec pp_param_cty fmt = function
|
||||
|
|
Loading…
Reference in a new issue