We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17213e4 commit 0d78f16Copy full SHA for 0d78f16
src/libasr/codegen/asr_to_c_cpp.h
@@ -2615,7 +2615,7 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
2615
} else {
2616
l = "1";
2617
}
2618
- size_str += "*" + l;
+ size_str += "*" + sym + "->dims[" + std::to_string(j) + "].length";
2619
out += indent + sym + "->dims[" + std::to_string(j) + "].lower_bound = ";
2620
out += st + ";\n";
2621
out += indent + sym + "->dims[" + std::to_string(j) + "].length = ";
0 commit comments