We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a5d89b + 5253174 commit 5569d74Copy full SHA for 5569d74
1 file changed
src/libasr/codegen/asr_to_c_cpp.h
@@ -1072,6 +1072,14 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
1072
} else {
1073
args += src;
1074
}
1075
+ } else if (ASR::is_a<ASR::ArrayItem_t>(*m_args[i].m_value)) {
1076
+ ASR::Variable_t* param = ASRUtils::EXPR2VAR(f->m_args[i]);
1077
+ if (param->m_intent == ASRUtils::intent_inout
1078
+ || param->m_intent == ASRUtils::intent_out || ASR::is_a<ASR::Struct_t>(*type)) {
1079
+ args += "&" + src;
1080
+ } else {
1081
+ args += src;
1082
+ }
1083
1084
if( ASR::is_a<ASR::Struct_t>(*type) ) {
1085
args += "&" + src;
0 commit comments