Skip to content

Commit 0872afc

Browse files
committed
Fix compiler warnings
1 parent dbd5ee0 commit 0872afc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Modules/faulthandler.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ static int
101101
faulthandler_get_fileno(PyObject **file_ptr)
102102
{
103103
PyObject *result;
104-
long fd_long;
105104
PyObject *file = *file_ptr;
106105

107106
if (file == NULL || file == Py_None) {
@@ -1234,7 +1233,7 @@ faulthandler__fatal_error_c_thread_impl(PyObject *module)
12341233
PyThread_acquire_lock(lock, WAIT_LOCK);
12351234

12361235
tid = PyThread_start_new_thread(faulthandler_fatal_error_thread, lock);
1237-
if (tid == -1) {
1236+
if (tid == PYTHREAD_INVALID_THREAD_ID) {
12381237
PyThread_free_lock(lock);
12391238
PyErr_SetString(PyExc_RuntimeError, "unable to start the thread");
12401239
return NULL;

0 commit comments

Comments
 (0)