warning: minimum values

Compiler is parsing this const expression as
-(2147483648) and 2147483648 is too large.
Workaround is to use -(2147483647) - (1)
This commit is contained in:
Michael Davidsaver
2011-02-08 13:28:03 -05:00
parent edfafd2ce6
commit 25af62a096

View File

@@ -26,9 +26,9 @@
#define SHORT_MAX_VALUE 32767
#define SHORT_MIN_VALUE -32768
#define INT_MAX_VALUE 2147483647
#define INT_MIN_VALUE -2147483648
#define INT_MIN_VALUE (-INT_MAX_VALUE - 1)
#define LONG_MAX_VALUE 9223372036854775807LL
#define LONG_MIN_VALUE -9223372036854775808LL
#define LONG_MIN_VALUE (-LONG_MAX_VALUE - 1LL)
#define FLOAT_MAX_VALUE 3.4028235E38
#define FLOAT_MIN_VALUE 1.4E-45
#define DOUBLE_MAX_VALUE 1.7976931348623157E308