Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f13c6d8

Browse files
author
Hirokazu Yamamoto
committed
Issue #9318: Use Py_LL for old compiler.
1 parent 44ef774 commit f13c6d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Include/pythread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ PyAPI_FUNC(int) PyThread_acquire_lock(PyThread_type_lock, int);
3939

4040
/* In the NT API, the timeout is a DWORD and is expressed in milliseconds */
4141
#if defined (NT_THREADS)
42-
#if (0xFFFFFFFFLL * 1000 < PY_TIMEOUT_MAX)
42+
#if (Py_LL(0xFFFFFFFF) * 1000 < PY_TIMEOUT_MAX)
4343
#undef PY_TIMEOUT_MAX
44-
#define PY_TIMEOUT_MAX (0xFFFFFFFFLL * 1000)
44+
#define PY_TIMEOUT_MAX (Py_LL(0xFFFFFFFF) * 1000)
4545
#endif
4646
#endif
4747

0 commit comments

Comments
 (0)