Mercurial > ms-int-types
comparison stdint.h @ 3:20f89e144621
BUGFIX: Definitions of INTPTR_MIN, INTPTR_MAX and UINTPTR_MAX for WIN32 and WIN64 was mixed up.
| author | alexander.chemeris@d525d15b-5824-0410-80a3-6185d19c2cde |
|---|---|
| date | Mon, 11 Dec 2006 21:58:05 +0000 |
| parents | 0cf270b831ef |
| children | 8409c3c61e95 |
comparison
equal
deleted
inserted
replaced
| 2:0cf270b831ef | 3:20f89e144621 |
|---|---|
| 119 #define UINT_FAST32_MAX UINT32_MAX | 119 #define UINT_FAST32_MAX UINT32_MAX |
| 120 #define UINT_FAST64_MAX UINT64_MAX | 120 #define UINT_FAST64_MAX UINT64_MAX |
| 121 | 121 |
| 122 // 7.18.2.4 Limits of integer types capable of holding object pointers | 122 // 7.18.2.4 Limits of integer types capable of holding object pointers |
| 123 #ifdef _WIN64 // [ | 123 #ifdef _WIN64 // [ |
| 124 # define INTPTR_MIN INT64_MIN | |
| 125 # define INTPTR_MAX INT64_MAX | |
| 126 # define UINTPTR_MAX UINT64_MAX | |
| 127 #else // _WIN64 ][ | |
| 124 # define INTPTR_MIN INT32_MIN | 128 # define INTPTR_MIN INT32_MIN |
| 125 # define INTPTR_MAX INT32_MAX | 129 # define INTPTR_MAX INT32_MAX |
| 126 # define UINTPTR_MAX UINT32_MAX | 130 # define UINTPTR_MAX UINT32_MAX |
| 127 #else // _WIN64 ][ | |
| 128 # define INTPTR_MIN INT64_MIN | |
| 129 # define INTPTR_MAX INT64_MAX | |
| 130 # define UINTPTR_MAX UINT64_MAX | |
| 131 #endif // _WIN64 ] | 131 #endif // _WIN64 ] |
| 132 | 132 |
| 133 // 7.18.2.5 Limits of greatest-width integer types | 133 // 7.18.2.5 Limits of greatest-width integer types |
| 134 #define INTMAX_MIN INT64_MIN | 134 #define INTMAX_MIN INT64_MIN |
| 135 #define INTMAX_MAX INT64_MAX | 135 #define INTMAX_MAX INT64_MAX |
