diff options
Diffstat (limited to 'StdLib/Include')
-rw-r--r-- | StdLib/Include/Ia32/machine/limits.h | 4 | ||||
-rw-r--r-- | StdLib/Include/X64/machine/limits.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/StdLib/Include/Ia32/machine/limits.h b/StdLib/Include/Ia32/machine/limits.h index f072e54..cc42e0f 100644 --- a/StdLib/Include/Ia32/machine/limits.h +++ b/StdLib/Include/Ia32/machine/limits.h @@ -26,8 +26,8 @@ #define __LONG_MIN (-2147483647L - 1L) // -(2^31 - 1)
/** Maximum value for an object of type long int. **/
-#define __LONG_MAX +2147483647L // 2^31 - 1
+#define __LONG_MAX 2147483647L // 2^31 - 1
/** Maximum value for an object of type unsigned long int. **/
-#define __ULONG_MAX 0xffffffff // 2^32 - 1
+#define __ULONG_MAX 0xffffffffUL // 2^32 - 1
diff --git a/StdLib/Include/X64/machine/limits.h b/StdLib/Include/X64/machine/limits.h index d046c64..144549c 100644 --- a/StdLib/Include/X64/machine/limits.h +++ b/StdLib/Include/X64/machine/limits.h @@ -5,13 +5,13 @@ #if defined(__GNUC__)
#define __LONG_BIT 64
/** minimum value for an object of type long int **/
-#define __LONG_MIN (-9223372036854775807L - 1L) // -(2^63 - 1)
+#define __LONG_MIN (-9223372036854775807LL - 1LL) // -(2^63 - 1)
/** maximum value for an object of type long int **/
-#define __LONG_MAX +9223372036854775807L // 2^63 - 1
+#define __LONG_MAX +9223372036854775807LL // 2^63 - 1
/** maximum value for an object of type unsigned long int **/
-#define __ULONG_MAX 0xFFFFFFFFFFFFFFFFUL // 2^64 - 1
+#define __ULONG_MAX 0xFFFFFFFFFFFFFFFFULL // 2^64 - 1
#else
#define __LONG_BIT 32
/** minimum value for an object of type long int **/
|