8000 gh-135709: Fix two compile warnings on WASM buildbot (#135712) · python/cpython@9c3c020 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c3c020

Browse files
authored
gh-135709: Fix two compile warnings on WASM buildbot (#135712)
1 parent 7541902 commit 9c3c020

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