Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b980969

Browse files
committed
C_CPP: Fix list section
Return value instead of pointer
1 parent dec343f commit b980969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libasr/codegen/asr_to_c_cpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
16111611
right + ", " + step + ", " + l_present + ", " + r_present + ");\n";
16121612
const_var_names[get_hash((ASR::asr_t*)&x)] = var_name;
16131613
tmp_buffer_src.push_back(tmp_src_gen);
1614-
src = "* " + var_name;
1614+
src = "(*" + var_name + ")";
16151615
}
16161616

16171617
void visit_ListClear(const ASR::ListClear_t& x) {

0 commit comments

Comments
 (0)