gh-135709: Fix two compile warnings on WASM buildbot (#135712)

This commit is contained in:
sobolevn 2025-06-19 18:46:40 +03:00 committed by GitHub
parent 754190287e
commit 9c3c02019c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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");