diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-16 19:40:11 -0500 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-16 19:40:11 -0500 |
commit | 554c7dd3c73f5892594e6d94b02a8152e4d6290d (patch) | |
tree | 98765b9a5da442ff70566797214e3acb79b199d3 /Python/thread.c | |
parent | 26fe575dc85f700f1218d2f5920e1f9a451a66cc (diff) | |
parent | 237f1851453fbfb5e57d43b7dc187bc7b2befbde (diff) | |
download | cpython-554c7dd3c73f5892594e6d94b02a8152e4d6290d.tar.gz |
Merge 3.4
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(); |