diff options
author | Victor Stinner <vstinner@python.org> | 2020-04-17 17:13:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 17:13:06 (GMT) |
commit | 1a1bd2e23871619adc1405e1cdc7c1e61252fd2c (patch) | |
tree | 180c1a278ebff4e696cf213ab41857983aca75c4 /Modules/_sha3 | |
parent | 9f5fe7910f4a1bf5a425837d4915e332b945eb7b (diff) | |
download | cpython-1a1bd2e23871619adc1405e1cdc7c1e61252fd2c.zip cpython-1a1bd2e23871619adc1405e1cdc7c1e61252fd2c.tar.gz cpython-1a1bd2e23871619adc1405e1cdc7c1e61252fd2c.tar.bz2 |
bpo-40302: Replace PY_INT64_T with int64_t (GH-19573)
* Replace PY_INT64_T with int64_t
* Replace PY_UINT32_T with uint32_t
* Replace PY_UINT64_T with uint64_t
sha3module.c no longer checks if PY_UINT64_T is defined since it's
always defined and uint64_t is always available on platforms
supported by Python.
Diffstat (limited to 'Modules/_sha3')
-rw-r--r-- | Modules/_sha3/sha3module.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c index 9cdee58..c826b42 100644 --- a/Modules/_sha3/sha3module.c +++ b/Modules/_sha3/sha3module.c @@ -40,7 +40,7 @@ #elif PY_BIG_ENDIAN /* opt64 is not yet supported on big endian platforms */ #define KeccakOpt 32 -#elif SIZEOF_VOID_P == 8 && defined(PY_UINT64_T) +#elif SIZEOF_VOID_P == 8 /* opt64 works only on little-endian 64bit platforms with unsigned int64 */ #define KeccakOpt 64 #else @@ -48,9 +48,9 @@ #define KeccakOpt 32 #endif -#if KeccakOpt == 64 && defined(PY_UINT64_T) +#if KeccakOpt == 64 /* 64bit platforms with unsigned int64 */ - typedef PY_UINT64_T UINT64; + typedef uint64_t UINT64; typedef unsigned char UINT8; #endif |