We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 768e809 commit 80968beCopy full SHA for 80968be
src/libasr/codegen/asr_to_c_cpp.h
@@ -2618,7 +2618,7 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
2618
}
2619
} else {
2620
self().visit_expr(*x.m_args[i].m_value);
2621
- if( ASR::is_a<ASR::ArrayItem_t>(*x.m_args[i].m_value) &&
+ if( ASR::is_a<ASR::ArrayItem_t>(*x.m_args[i].m_value) ||
2622
ASR::is_a<ASR::Struct_t>(*ASRUtils::expr_type(x.m_args[i].m_value)) ) {
2623
out += "&" + src;
2624
0 commit comments