Changed datatype to avoid signed/unsigned warning from Intel compiler