diff options
author | Larry Hastings <larry@hastings.org> | 2015-12-20 22:46:30 -0800 |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2015-12-20 22:46:30 -0800 |
commit | 9e34b958086344c2de9e08c8831b4a7c01be619a (patch) | |
tree | 32bb40d26e9865264292590b78c6731a916517a9 /Python/thread.c | |
parent | 4ac5cf0d85fda4ae3d78b08b0eac37a882cc3853 (diff) | |
parent | ad0f5ec14da4d3fa7549f8e30b419abb6e11660d (diff) | |
download | cpython-9e34b958086344c2de9e08c8831b4a7c01be619a.tar.gz |
Merge 3.4.4 from 3.4 to 3.5.
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 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(); |