10000 [3.14] gh-135709: Fix two compile warnings on WASM buildbot (GH-13571… · python/cpython@8caf3fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 8caf3fd

Browse files
[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 9c3c020) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent a170086 commit 8caf3fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/_testcapi/long.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ pylongwriter_create(PyObject *module, PyObject *args)
228228
goto error;
229229
}
230230

231-
if (num < 0 || num >= PyLong_BASE) {
231+
if (num < 0 || num >= (long)PyLong_BASE) {
232232
PyErr_SetString(PyExc_ValueError, "digit doesn't fit into digit");
233233
goto error;
234234
}

Modules/_testcapimodule.c

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

24252425

24262426
// Used by `finalize_thread_hang`.
2427-
#ifdef _POSIX_THREADS
2427+
#if defined(_POSIX_THREADS) && !defined(__wasi__)
24282428
static void finalize_thread_hang_cleanup_callback(void *Py_UNUSED(arg)) {
24292429
// Should not reach here.
24302430
Py_FatalError("pthread thread termination was triggered unexpectedly");

0 commit comments

Comments
 (0)
0