From aefa7ebf0ff0f73feee7ab24f4cdcb2014d83ee5 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 23 Mar 2017 15:48:39 +0200 Subject: bpo-6532: Make the thread id an unsigned integer. (#781) * bpo-6532: Make the thread id an unsigned integer. From C API side the type of results of PyThread_start_new_thread() and PyThread_get_thread_ident(), the id parameter of PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState changed from "long" to "unsigned long". * Restore a check in thread_get_ident(). --- Modules/_io/bufferedio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/_io/bufferedio.c') diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c index 4f6dddb3a3..b30d229bb6 100644 --- a/Modules/_io/bufferedio.c +++ b/Modules/_io/bufferedio.c @@ -239,7 +239,7 @@ typedef struct { #ifdef WITH_THREAD PyThread_type_lock lock; - volatile long owner; + volatile unsigned long owner; #endif Py_ssize_t buffer_size; -- cgit v1.2.1