diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-22 00:18:11 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-22 00:18:11 +0100 |
| commit | 7d98c6e7cca7c964ce01afdf88125b147b57943f (patch) | |
| tree | edd84ddc32a466d9481fa07a9e42c88e7e849059 /Python/thread.c | |
| parent | 854afa0d9ba5f3450ab807432e590819be3a7f75 (diff) | |
| parent | c044b71c5a4088125ba4ed2d2ac91d6497f08214 (diff) | |
| download | cpython-7d98c6e7cca7c964ce01afdf88125b147b57943f.tar.gz | |
Merge 3.4 (asyncio)
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(); |
