Skip to content

Commit 0794b97

Browse files
committed
- assume real for T_UNKNOWN + a comment in the C code.
wonder how many tests this will break :) git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13948 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent f56eff9 commit 0794b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/Template/CodegenC.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7888,7 +7888,7 @@ template expTypeShort(DAE.Type type)
78887888
case T_COMPLEX(__) then 'struct <%underscorePath(ClassInf.getStateName(complexClassType))%>'
78897889
case T_METATYPE(__) case T_METABOXED(__) then "metatype"
78907890
case T_FUNCTION_REFERENCE_VAR(__) then "fnptr"
7891-
case T_UNKNOWN(__) then "complex" /* TODO: Don't do this to me! */
7891+
case T_UNKNOWN(__) then "real /* assumming real for uknown type! */" /* TODO: Don't do this to me! */
78927892
case T_ANYTYPE(__) then "complex" /* TODO: Don't do this to me! */
78937893
else error(sourceInfo(),'expTypeShort:<%unparseType(type)%>')
78947894
end expTypeShort;

0 commit comments

Comments
 (0)