diff options
author | Donald Stufft <donald@stufft.io> | 2015-07-01 11:31:13 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2015-07-01 11:31:13 -0400 |
commit | 5a50ae74fa611723bde7d673fd27cefa00f24e6b (patch) | |
tree | e7b64e19cfb3ae6c1166d3ee22f0f29b482910c7 /Python/thread.c | |
parent | e07b74777eba759b6e8e793148ee8d09ba2b79aa (diff) | |
parent | 244a0c3c25f988231bf7c2b20a0dd2faf2ae6b13 (diff) | |
download | cpython-5a50ae74fa611723bde7d673fd27cefa00f24e6b.tar.gz |
merge in setuptools/pip update
Diffstat (limited to 'Python/thread.c')
-rw-r--r-- | Python/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c index 4e695aeca2..44c071eafe 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -431,7 +431,7 @@ PyThread_GetInfo(void) && defined(_CS_GNU_LIBPTHREAD_VERSION)) value = NULL; len = confstr(_CS_GNU_LIBPTHREAD_VERSION, buffer, sizeof(buffer)); - if (1 < len && len < sizeof(buffer)) { + if (1 < len && (size_t)len < sizeof(buffer)) { value = PyUnicode_DecodeFSDefaultAndSize(buffer, len-1); if (value == NULL) PyErr_Clear(); |