﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6098	(possibly) wrong type mapping for bool in record passed to external object	Roman <openmodelica@…>	Mahder Alemseged Gebremedhin	"Summary:
A boolean in a record, passed to a external object will result in a wrong C struct for the record. Boolean will be translated to ""signed char"" instead of ""int"". 
See https://modelica.org/documents/ModelicaSpec34.pdf#page=169

Given a record
  record MyRecord
    Real MyReal;
    Boolean MyBoolean;
  end MyRecord;

that will be passed to a function:
  function bmaxxAufladung ""Aufladung""
    output MyRecord mRecord;
    external ""C"" externalCFunction(mRecord);
  end bmaxxAufladung;

will result in ""MyModelName_functions.h""
typedef struct {
  modelica_real _MyReal;
  modelica_boolean _MyReal;
  } ModelName_MyRecord;

modelica_boolean is defined as ""typedef signed char modelica_boolean;"" in include/omc/c/openmodelica_types.h"	defect	accepted	blocker	1.19.0	Code Generation				
