summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-12-20 22:46:30 -0800
committerLarry Hastings <larry@hastings.org>2015-12-20 22:46:30 -0800
commit9e34b958086344c2de9e08c8831b4a7c01be619a (patch)
tree32bb40d26e9865264292590b78c6731a916517a9 /Python/thread.c
parent4ac5cf0d85fda4ae3d78b08b0eac37a882cc3853 (diff)
parentad0f5ec14da4d3fa7549f8e30b419abb6e11660d (diff)
downloadcpython-9e34b958086344c2de9e08c8831b4a7c01be619a.tar.gz
Merge 3.4.4 from 3.4 to 3.5.
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread.c b/Python/thread.c
index 810691f0b0..63eeb1e123 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();