https://github.com/python/cpython/commit/8caf3fdacb1466172a57a469e60fbc346f334e32 commit: 8caf3fdacb1466172a57a469e60fbc346f334e32 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: sobolevn <[email protected]> date: 2025-06-19T16:14:08Z summary:
[3.14] gh-135709: Fix two compile warnings on WASM buildbot (GH-135712) (#135723) gh-135709: Fix two compile warnings on WASM buildbot (GH-135712) (cherry picked from commit 9c3c02019cf0bc7792bbdd3a314e45642178e3b5) Co-authored-by: sobolevn <[email protected]> files: M Modules/_testcapi/long.c M Modules/_testcapimodule.c diff --git a/Modules/_testcapi/long.c b/Modules/_testcapi/long.c index 42243023a45768..6313abf5485fff 100644 --- a/Modules/_testcapi/long.c +++ b/Modules/_testcapi/long.c @@ -228,7 +228,7 @@ pylongwriter_create(PyObject *module, PyObject *args) goto error; } - if (num < 0 || num >= PyLong_BASE) { + if (num < 0 || num >= (long)PyLong_BASE) { PyErr_SetString(PyExc_ValueError, "digit doesn't fit into digit"); goto error; } diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 281c5b41137ac2..71fffedee146fa 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -2424,7 +2424,7 @@ test_critical_sections(PyObject *module, PyObject *Py_UNUSED(args)) // Used by `finalize_thread_hang`. -#ifdef _POSIX_THREADS +#if defined(_POSIX_THREADS) && !defined(__wasi__) static void finalize_thread_hang_cleanup_callback(void *Py_UNUSED(arg)) { // Should not reach here. Py_FatalError("pthread thread termination was triggered unexpectedly"); _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
