mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Python/ subdirectory.
This commit is contained in:
parent
eae94706a3
commit
98ea54c35c
5 changed files with 6 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue