diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-11-02 04:04:57 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-02 04:04:57 +0000 |
commit | f2bae721c199a8e35ab2272984dda5bcc081d45d (patch) | |
tree | 7803b62f3048b11f9be40f4e329fedbf40f363f4 /Python/thread.c | |
parent | 83fc8c09e3c0a071b0f0900b1cb7a1755638741a (diff) | |
parent | 4ec569b31165987c3f55b2401db5404a2a50ab2f (diff) | |
download | cpython-f2bae721c199a8e35ab2272984dda5bcc081d45d.tar.gz |
Issue #25523: Merge "a" to "an" fixes from 3.4 into 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(); |