Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit d4d6059

Browse files
Willi BraunOpenModelica-Hudson
authored andcommitted
[CG] stip subs before copy array
- fixing ticket:5114 Belonging to [master]: - #2678 - OpenModelica/OpenModelica-testsuite#1041
1 parent b860115 commit d4d6059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/Template/CodegenCFunctions.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,7 @@ template copyArrayData(DAE.Type ty, String exp, DAE.ComponentRef cr, Context con
27282728
Text &preExp, Text &varDecls, Text &auxFunction)
27292729
::=
27302730
let type = expTypeArray(ty)
2731-
let cref = contextArrayCref(cr, context)
2731+
let cref = contextArrayCref(crefStripSubs(cr), context)
27322732
match context
27332733
case FUNCTION_CONTEXT(__) then
27342734
'copy_<%type%><%if dimensionsKnown(ty) then "_data" /* else we make allocate and copy data */%>(<%exp%>, &<%cref%>);'

0 commit comments

Comments
 (0)