Back to all issues

Issue 4328

Bug: Error when passing pointer to structure containing enumerations into custom code


SubmittedProductStatus
2019-05-20Reactis for SimulinkResolved in 2018.2.3 (released Jun 28, 2019; release notes)
Resolved in 2018.0.5 (released Jun 28, 2019; release notes)

If a Stateflow chart is calling a custom C code function, passing a pointer to a structure containing an enumerated type, Reactis produces the following error:

Error: Pointer data type mismatch
Cannot pass a pointer to a variable of type 
data_def->{val: single, state: Enum:STATE} 
into a function that expects a pointer to 
{val: single, state: int }.