diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-16 19:51:19 -0500 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-12-16 19:51:19 -0500 |
commit | c569f126d398adb6ab91099679dc5b809c89ebbe (patch) | |
tree | d8dcebae380b295534cd15e4b9c8143fc0177c3d /Python/thread.c | |
parent | aedd1fe7150d34ca5f40c6fe305c6e0560d91be0 (diff) | |
parent | 554c7dd3c73f5892594e6d94b02a8152e4d6290d (diff) | |
download | cpython-c569f126d398adb6ab91099679dc5b809c89ebbe.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(); |