diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-15 00:23:08 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-15 00:23:08 +0200 |
commit | 458032a249e61213cfd53f3e27dcc16003310812 (patch) | |
tree | 7a2b9eec68501024a0ef4fc35b5ebf2b1df3433d /Python/thread.c | |
parent | 7151648468b2f2c3f02ded08a369343693c5dcd8 (diff) | |
parent | febef19231812bb0c0afe128320aa4790aaa3911 (diff) | |
download | cpython-458032a249e61213cfd53f3e27dcc16003310812.tar.gz |
Merge 3.4 (test_gdb)
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(); |