Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Python/ subdirectory.
diff --git a/Python/getargs.c b/Python/getargs.c
index 946faf2..a313269 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -872,7 +872,7 @@
STORE_SIZE(count);
format++;
} else {
- if (strlen(*p) != count)
+ if (strlen(*p) != (size_t)count)
return converterr(
"bytes without null bytes",
arg, msgbuf, bufsize);
@@ -994,7 +994,7 @@
*p = PyUnicode_AsUnicodeAndSize(arg, &len);
if (*p == NULL)
RETURN_ERR_OCCURRED;
- if (Py_UNICODE_strlen(*p) != len)
+ if (Py_UNICODE_strlen(*p) != (size_t)len)
return converterr(
"str without null characters or None",
arg, msgbuf, bufsize);