Skip to content

Commit

Permalink
[C] Fix the allocatable array size
Browse files Browse the repository at this point in the history
  • Loading branch information
Thirumalai-Shaktivel committed Nov 17, 2023
1 parent a6a2807 commit a5e3d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libasr/codegen/asr_to_c_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2615,7 +2615,7 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
} else {
l = "1";
}
size_str += "*" + l;
size_str += "*" + sym + "->dims[" + std::to_string(j) + "].length";
out += indent + sym + "->dims[" + std::to_string(j) + "].lower_bound = ";
out += st + ";\n";
out += indent + sym + "->dims[" + std::to_string(j) + "].length = ";
Expand Down

0 comments on commit a5e3d04

Please sign in to comment.