Skip to content

Commit

Permalink
fix for external string arrays in cpp template
Browse files Browse the repository at this point in the history
  • Loading branch information
niklwors authored and OpenModelica-Hudson committed Dec 2, 2015
1 parent 712e46e commit 56d1973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -5232,7 +5232,7 @@ case SIMEXTARG(cref=c, isInput =iI, outputIndex=oi, isArray=true, type_=t)then
let dimStr = listLength(dims)
let dimsStr = checkDimension(dims)
let elType = expTypeShort(ty)
let extType = extType2(ty, true, false)
let extType = if stringEq(elType, "string") then elType else extType2(ty, true, false)
let extCStr = if stringEq(elType, "string") then 'CStrArray'
if boolOr(intGt(listLength(dims), 1), stringEq(elType, "bool")) then
let tmp = match dimsStr
Expand Down

0 comments on commit 56d1973

Please sign in to comment.