stdint.h UINTPTR_MAX has the same value as UINT32_MAX for 64-bit platforms - by Olaf Trygve Berglihn

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 721786 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 1/31/2012 5:42:19 AM
Access Restriction Public


On 64-bit platform with 64-bit Visual Studio, I expected UINTPTR_MAX from stdint.h to give more than UINT32_MAX.
Sign in to post a comment.
Posted by Microsoft on 2/1/2012 at 1:42 PM

Thanks for reporting this bug. We've already fixed it (back in June 2011) and the fix will be available in VC11.

stdint.h now says:

#ifdef _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 */

If you have any further questions, feel free to E-mail me at .

Stephan T. Lavavej
Visual C++ Libraries Developer
Posted by EricLeong [Feedback Moderator] on 1/31/2012 at 9:39 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 1/31/2012 at 6:43 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(