[issue17884] Try to reuse stdint.h types like int32_t

Mark Dickinson report at bugs.python.org
Wed May 1 22:00:11 CEST 2013


Mark Dickinson added the comment:

> I don't understand why "#ifdef HAVE_UINT32_T" is tested, since configure ensures that uint32_t is always defined.

Take a look at the explanations in the autoconf file and in pyport.h.  No, configure does *not* always ensure that uint32_t is defined:  it does that only if the platform *doesn't* provide uint32_t, but does provide a 32-bit exact-width unsigned integer type (two's complement, no padding bits, etc. etc.).  Which is why we need to make a second check for the case that the platform *does* define uint32_t directly.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17884>
_______________________________________


More information about the Python-bugs-list mailing list