# HG changeset patch # User alexander.chemeris@d525d15b-5824-0410-80a3-6185d19c2cde # Date 1165874285 0 # Node ID 20f89e1446215b2c5dc55a374ac2ae708b2514ae # Parent 0cf270b831ef8e16d25fbfb26281585f88cca450 BUGFIX: Definitions of INTPTR_MIN, INTPTR_MAX and UINTPTR_MAX for WIN32 and WIN64 was mixed up. diff --git a/stdint.h b/stdint.h --- a/stdint.h +++ b/stdint.h @@ -121,13 +121,13 @@ typedef uint64_t uintmax_t; // 7.18.2.4 Limits of integer types capable of holding object pointers #ifdef _WIN64 // [ -# define INTPTR_MIN INT32_MIN -# define INTPTR_MAX INT32_MAX -# define UINTPTR_MAX UINT32_MAX -#else // _WIN64 ][ # define INTPTR_MIN INT64_MIN # define INTPTR_MAX INT64_MAX # define UINTPTR_MAX UINT64_MAX +#else // _WIN64 ][ +# define INTPTR_MIN INT32_MIN +# define INTPTR_MAX INT32_MAX +# define UINTPTR_MAX UINT32_MAX #endif // _WIN64 ] // 7.18.2.5 Limits of greatest-width integer types