8000 debug... · python/pythoncapi-compat@cf48c37 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf48c37

Browse files
committed
debug...
1 parent 317a565 commit cf48c37

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pythoncapi_compat.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,9 +1198,7 @@ static inline int PyTime_PerfCounter(PyTime_t *result)
11981198

11991199
// gh-111389 added hash constants to Python 3.13.0a5. These constants were
12001200
// added first as private macros to Python 3.4.0b1 and PyPy 7.3.9.
1201-
#if (!defined(PyHASH_BITS) \
1202-
&& PY_VERSION_HEX >= 0x030400B1 \
1203-
&& (!defined(PYPY_VERSION_NUM) || PYPY_VERSION_NUM >= 0x07030900))
1201+
#if !defined(PyHASH_BITS) && PY_VERSION_HEX >= 0x030400B1
12041202
# define PyHASH_BITS _PyHASH_BITS
12051203
# define PyHASH_MODULUS _PyHASH_MODULUS
12061204
# define PyHASH_INF _PyHASH_INF

tests/test_pythoncapi_compat_cext.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,8 +1522,7 @@ test_hash(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
15221522
assert(Py_HashPointer(ptr1) == (Py_hash_t)ptr1);
15231523
#endif
15241524

1525-
#if PY_VERSION_HEX >= 0x030400B1 \
1526-
&& (!defined(PYPY_VERSION_NUM) || PYPY_VERSION_NUM >= 0x07030900)
1525+
#if PY_VERSION_HEX >= 0x030400B1
15271526
// Just check that constants are available
15281527
size_t bits = PyHASH_BITS;
15291528
assert(bits >= 8);

0 commit comments

Comments
 (0)
0