summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-02 04:04:57 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-11-02 04:04:57 +0000
commitf2bae721c199a8e35ab2272984dda5bcc081d45d (patch)
tree7803b62f3048b11f9be40f4e329fedbf40f363f4 /Python/thread.c
parent83fc8c09e3c0a071b0f0900b1cb7a1755638741a (diff)
parent4ec569b31165987c3f55b2401db5404a2a50ab2f (diff)
downloadcpython-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.c2
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();