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

Commit 415de24

Browse files
perostOpenModelica-Hudson
authored andcommitted
Fix for #4524:
- Fix expTypeFromExpFlag in CodegenCFunction.tpl for size expressions.
1 parent 5bf9661 commit 415de24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Compiler/Template/CodegenCFunctions.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3689,9 +3689,9 @@ template expTypeFromExpFlag(Exp exp, Integer flag)
36893689
case c as CODE(__) then expTypeFlag(c.ty, flag)
36903690
case c as ASUB(__) then expTypeFlag(typeof(c), flag)
36913691
case REDUCTION(__) then expTypeFlag(typeof(exp), flag)
3692-
case CONS(__)
3693-
case LIST(__)
3694-
case SIZE(__) then expTypeFlag(typeof(exp), flag)
3692+
case e as CONS(__)
3693+
case e as LIST(__)
3694+
case e as SIZE(__) then expTypeFlag(typeof(e), flag)
36953695

36963696
case META_TUPLE(__)
36973697
case META_OPTION(__)

0 commit comments

Comments
 (0)