diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2019-12-05 14:55:28 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@python.org> | 2019-12-05 14:55:28 (GMT) |
commit | 1f9f69dd4c5ee232c0b2f782933a89359932a67f (patch) | |
tree | 1073e7f75e4986754a2805cd0103767d988a7612 /Include/pythread.h | |
parent | 99eb70a9eb9493602ff6ad8bb92df4318cf05a3e (diff) | |
download | cpython-1f9f69dd4c5ee232c0b2f782933a89359932a67f.zip cpython-1f9f69dd4c5ee232c0b2f782933a89359932a67f.tar.gz cpython-1f9f69dd4c5ee232c0b2f782933a89359932a67f.tar.bz2 |
bpo-27961: Replace PY_LLONG_MAX, PY_LLONG_MIN and PY_ULLONG_MAX with standard macros (GH-15385)
Use standard constants LLONG_MIN, LLONG_MAX and ULLONG_MAX.
Diffstat (limited to 'Include/pythread.h')
-rw-r--r-- | Include/pythread.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/pythread.h b/Include/pythread.h index f22e8c4..569d696 100644 --- a/Include/pythread.h +++ b/Include/pythread.h @@ -51,16 +51,16 @@ PyAPI_FUNC(int) PyThread_acquire_lock(PyThread_type_lock, int); #if defined(_POSIX_THREADS) /* PyThread_acquire_lock_timed() uses _PyTime_FromNanoseconds(us * 1000), convert microseconds to nanoseconds. */ -# define PY_TIMEOUT_MAX (PY_LLONG_MAX / 1000) +# define PY_TIMEOUT_MAX (LLONG_MAX / 1000) #elif defined (NT_THREADS) /* In the NT API, the timeout is a DWORD and is expressed in milliseconds */ -# if 0xFFFFFFFFLL * 1000 < PY_LLONG_MAX +# if 0xFFFFFFFFLL * 1000 < LLONG_MAX # define PY_TIMEOUT_MAX (0xFFFFFFFFLL * 1000) # else -# define PY_TIMEOUT_MAX PY_LLONG_MAX +# define PY_TIMEOUT_MAX LLONG_MAX # endif #else -# define PY_TIMEOUT_MAX PY_LLONG_MAX +# define PY_TIMEOUT_MAX LLONG_MAX #endif |