Avoid integer overflow while calculating max values

BZ: 134249

The behavior is undefined in the case of signed integer overflow
for enum and fixed point parameter types.

Modify the behavior to handle correctly the signed integers.

Change-Id: Idbd0798a39f826853ae1afcd05cebd897675b9a8
Signed-off-by: Dmitry Shkurko <Dmitry.V.Shkurko@intel.com>
3 files changed