summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-22 09:09:24 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-22 09:09:24 +0100
commit3fd279ebe09bbd98f93b1a74e44bf69b05f28b14 (patch)
treea29b724be9b4d73eaf040c1da3f06eb30440304c /Python/thread.c
parentf21948c9b62b6c4e31a5d10f4c4eddd8cb3e2331 (diff)
parent7d98c6e7cca7c964ce01afdf88125b147b57943f (diff)
downloadcpython-3fd279ebe09bbd98f93b1a74e44bf69b05f28b14.tar.gz
Merge 3.4
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 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();