diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-01-23 19:36:54 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-01-23 19:36:54 +0000 |
commit | 8fa7954e4ef26dcf377019236cc2171fb8be8355 (patch) | |
tree | a1e6fd2f3384fb9656a70174a65ea0a04ffd4861 /Python/thread.c | |
parent | a2f7d2bf741a71f23cbf154cc292e610086f431f (diff) | |
parent | c8962fe46dc4b0bfa761087a8e095e0fb001fb34 (diff) | |
download | cpython-8fa7954e4ef26dcf377019236cc2171fb8be8355.tar.gz |
Closes #23202: pyvenv documentation updated to match its behavior.
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(); |