﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5550	Different size of long on windows / linux systems	jens.schoenbohm@…	Martin Sjölund	"Hi,
I have the problem, that the same metamodelica code on different os gives different results:

{{{
function intSize
output Integer j = 0;
  protected
    Integer i = 1;
  algorithm
    while i > 0 loop
      j := j + 1;
      i := i * 2;
    end while; 
 print(j);
end intSize;
}}}

On a windows system the value of j is 31 and on a linux system the value is 63. e.g. This is a problem using the hash function.

As far as I could see, this happens because of the different length of the c type long on different os.

openmodelica_types.h defines 
{{{
typedef long m_integer
}}}

I suggest to use long long for the windows version."	defect	closed	low	1.17.0	Code Generation	v1.14.0-dev-nightly	fixed		
