Skip to content

Commit

Permalink
C_CPP: Fix list concat
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Jul 30, 2023
1 parent 638b052 commit 8fa1ef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libasr/codegen/asr_to_c_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,8 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
if (!ASR::is_a<ASR::ListConcat_t>(*x.m_right)) {
rig = "&" + rig;
}
src = check_tmp_buffer() + list_concat_func + "(" + left + ", " + rig + ")";
tmp_buffer_src.push_back(check_tmp_buffer());
src = list_concat_func + "(" + left + ", " + rig + ")";
}

void visit_ListSection(const ASR::ListSection_t& x) {
Expand Down

0 comments on commit 8fa1ef4

Please sign in to comment.