summaryrefslogtreecommitdiff
path: root/codegen/valaccodearraymodule.vala
diff options
context:
space:
mode:
Diffstat (limited to 'codegen/valaccodearraymodule.vala')
-rw-r--r--codegen/valaccodearraymodule.vala6
1 files changed, 1 insertions, 5 deletions
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index 2b3021a5f..9a84ef848 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -861,16 +861,12 @@ public class Vala.CCodeArrayModule : CCodeMethodCallModule {
if (ctypename == null) {
ctypename = get_ccode_name (param.variable_type);
- if (array_type.fixed_length) {
- ctypename += "*";
- }
-
if (param.direction != ParameterDirection.IN) {
ctypename += "*";
}
}
- var main_cparam = new CCodeParameter (get_ccode_name (param), ctypename);
+ var main_cparam = new CCodeParameter.with_declarator (ctypename, new CCodeVariableDeclarator (get_ccode_name (param), null, get_ccode_declarator_suffix (array_type)));
generate_type_declaration (array_type.element_type, decl_space);