stop using Py_LL and Py_ULL · pythoncapi/cpython@ac965ca · GitHub
Skip to content

Commit ac965ca

Browse files
committed
stop using Py_LL and Py_ULL
1 parent 41e35f3 commit ac965ca

4 files changed

Lines changed: 86 additions & 90 deletions

File tree

Include/pyport.h

Lines changed: 0 additions & 4 deletions

Include/pythread.h

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

4343
/* In the NT API, the timeout is a DWORD and is expressed in milliseconds */
4444
#if defined (NT_THREADS)
45-
#if (Py_LL(0xFFFFFFFF) * 1000 < PY_TIMEOUT_MAX)
45+
#if 0xFFFFFFFFLL * 1000 < PY_TIMEOUT_MAX
4646
#undef PY_TIMEOUT_MAX
47-
#define PY_TIMEOUT_MAX (Py_LL(0xFFFFFFFF) * 1000)
47+
#define PY_TIMEOUT_MAX (0xFFFFFFFFLL * 1000)
4848
#endif
4949
#endif
5050

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4206,7 +4206,7 @@ typedef struct tm *(*TM_FUNC)(const time_t *timer, struct tm*);
42064206
* 23 hours at 1969-09-30 13:00:00 in Kwajalein. */
42074207
static long long max_fold_seconds = 24 * 3600;
42084208
/* NB: date(1970,1,1).toordinal() == 719163 */
4209-
static long long epoch = Py_LL(719163) * 24 * 60 * 60;
4209+
static long long epoch = 719163LL * 24 * 60 * 60;
42104210

42114211
static long long
42124212
utc_to_seconds(int year, int month, int day,

Modules/sha512module.c

Lines changed: 83 additions & 83 deletions

0 commit comments

Comments
 (0)