diff --git a/m2cgen/interpreters/c/code_generator.py b/m2cgen/interpreters/c/code_generator.py index 8f6a86b7..babc37f6 100644 --- a/m2cgen/interpreters/c/code_generator.py +++ b/m2cgen/interpreters/c/code_generator.py @@ -54,7 +54,7 @@ def add_dependency(self, dep): self.prepend_code_line(f"#include {dep}") def vector_init(self, values): - return f"(double[]){{{', '.join(values)}}}" + return f"((double[]){{{', '.join(values)}}})" def _get_var_declare_type(self, is_vector): return self.vector_type if is_vector else self.scalar_type