Opened 14 years ago
Last modified 14 years ago
#1260 closed defect (fixed)
Ambiguous template globalDataAttrInt() in SimCodeC.tpl
Reported by: | asodja | Owned by: | asodja |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Simulation Code Generation | Version: | 1.6.0 |
Keywords: | Cc: | asodja, |
Description
In {{template globalDataAttrInt(DAE.ExpType type)}} from {{SimCodeC.tpl}}, the input argument can also be DAE.ET_ENUMERATION -- a case not handled.
When that case arise, templates outputs empty string.
Generated code still compiles, since output of this template is summed with {{globalDataDiscAttrInt()}} output (so {{ET_ENUMERATION}} is effectively translated to 0).
Note:
See TracTickets
for help on using tickets.
I believe this was fixed in trunk; is this correct?