﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2651	Definitions in SimulationRuntime/c/openmodelica.h and SimulationRuntime/c/simulation/solver/libf2c/f2c.h do not match for 64-bit systems	Michael Kloeppel	somebody	"In SimulationRuntime/c/openmodelica.h (line 91) the following definitions can be found

{{{
#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__ia64__)
typedef int fortran_integer;
typedef unsigned int fortran_uinteger;
#else
typedef long int fortran_integer;
typedef unsigned long int fortran_uinteger;
#endif
}}}

whereas in SimulationRuntime/c/simulation/solver/libf2c/f2c.h (line 10) the following is defined.

{{{
typedef long int integer;
typedef unsigned long int uinteger;
}}}

When arguments of the type fortran_integer* are passed to functions expecting integer* (as for instance in the dasrt solver) this leads to problems on 64-bit systems, causing for instance the dasrt solver to abort.

Using a newer version of f2c.h fixed the issue for me, but since I'm not sure what other parts depend on the f2c.h header file, I don't want to patch this file right now. "	defect	new	normal	Future	Run-time	trunk			Lennart Ochel
