mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +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
|
@ -581,7 +581,7 @@ source_as_string(PyObject *cmd, char *funcname, char *what, PyCompilerFlags *cf)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (strlen(str) != size) {
|
||||
if (strlen(str) != (size_t)size) {
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
"source code string cannot contain null bytes");
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue