mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
[3.14] gh-135709: Fix two compile warnings on WASM buildbot (GH-135712) (#135723)
Some checks are pending
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
Some checks are pending
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
gh-135709: Fix two compile warnings on WASM buildbot (GH-135712)
(cherry picked from commit 9c3c02019c)
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
a170086162
commit
8caf3fdacb
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue