mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #22156: Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
This commit is contained in:
parent
12174a5dca
commit
706768c687
13 changed files with 24 additions and 21 deletions
|
@ -902,7 +902,7 @@ path_converter(PyObject *o, void *p) {
|
|||
#endif
|
||||
|
||||
narrow = PyBytes_AS_STRING(bytes);
|
||||
if (length != strlen(narrow)) {
|
||||
if ((size_t)length != strlen(narrow)) {
|
||||
FORMAT_EXCEPTION(PyExc_ValueError, "embedded NUL character in %s");
|
||||
Py_DECREF(bytes);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue