summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-15 23:30:40 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-08-15 23:30:40 +0200
commit98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90 (patch)
tree126cb038a65e06368c70f900ed90139c0e67a66b /Python/thread.c
parenteae94706a30c99150982034d644d8b3abf28110b (diff)
downloadcpython-git-98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90.tar.gz
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Python/ subdirectory.
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 d1cb0e6f9d..9eb5d12f50 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();