We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 179d0f7 commit 029f395Copy full SHA for 029f395
src/libasr/codegen/asr_to_c_cpp.h
@@ -1073,9 +1073,7 @@ PyMODINIT_FUNC PyInit_lpython_module_)" + fn_name + R"((void) {
1073
ASR::is_a<ASR::Variable_t>(
1074
*(ASR::down_cast<ASR::Var_t>(m_args[i].m_value)->m_v))) {
1075
ASR::Variable_t* param = ASRUtils::EXPR2VAR(f->m_args[i]);
1076
- if( (ASRUtils::is_array(type) &&
1077
- ASRUtils::is_pointer(type))
1078
- || (is_c && (param->m_intent == ASRUtils::intent_inout
+ if( (is_c && (param->m_intent == ASRUtils::intent_inout
1079
|| param->m_intent == ASRUtils::intent_out)
1080
&& !ASRUtils::is_aggregate_type(param->m_type))) {
1081
args += "&" + src;
0 commit comments