Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit03e441d

Browse files
authored
Relax PYPY_VERSION_NUM requirements for hash macros (#122)
Those added inpypy/pypy@5661dffwhich is available in PyPy 7.3.8+.
1 parent77abeec commit03e441d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎pythoncapi_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,11 +1204,11 @@ static inline int PyTime_PerfCounter(PyTime_t *result)
12041204
#endif
12051205

12061206
// gh-111389 added hash constants to Python 3.13.0a5. These constants were
1207-
// added first as private macros to Python 3.4.0b1 and PyPy 7.3.9.
1207+
// added first as private macros to Python 3.4.0b1 and PyPy 7.3.8.
12081208
#if (!defined(PyHASH_BITS) \
12091209
&& ((!defined(PYPY_VERSION) && PY_VERSION_HEX >=0x030400B1) \
12101210
|| (defined(PYPY_VERSION) && PY_VERSION_HEX >=0x03070000 \
1211-
&& PYPY_VERSION_NUM >=0x07090000)))
1211+
&& PYPY_VERSION_NUM >=0x07030800)))
12121212
#definePyHASH_BITS _PyHASH_BITS
12131213
#definePyHASH_MODULUS _PyHASH_MODULUS
12141214
#definePyHASH_INF _PyHASH_INF

‎tests/test_pythoncapi_compat_cext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ test_hash(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
16161616

16171617
#if ((!defined(PYPY_VERSION)&&PY_VERSION_HEX >=0x030400B1) \
16181618
|| (defined(PYPY_VERSION)&&PY_VERSION_HEX >=0x03070000 \
1619-
&&PYPY_VERSION_NUM >=0x07090000))
1619+
&&PYPY_VERSION_NUM >=0x07030800))
16201620
// Just check that constants are available
16211621
size_tbits=PyHASH_BITS;
16221622
assert(bits >=8);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp