Skip to content

Commit

Permalink
Make size arary alloc C99 std compliant instead of C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrudPrimrose committed Dec 19, 2024
1 parent 16f6e88 commit 02937e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dace/codegen/targets/framecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ def generate_code(self,
dimensions = ["0" if "__dace_defer" in cpp.sym2cpp(dim) else cpp.sym2cpp(dim) for dim in array.shape]
size_str = ",".join(dimensions)
assert len(size_nodedesc.shape) == 1
alloc_str = f'{ctypedef} {size_desc_name}[{size_nodedesc.shape[0]}]{{{size_str}}};\n'
alloc_str = f'{ctypedef} {size_desc_name}[{size_nodedesc.shape[0]}] = {{{size_str}}};\n'
callsite_stream.write(alloc_str)
self.dispatcher.defined_vars.add(size_desc_name, disp.DefinedType.Pointer, ctypedef, allow_shadowing=True)

Expand Down

0 comments on commit 02937e3

Please sign in to comment.