mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
Fix signed/unsigned comparison to avoid compilation warning (GH-24441)
This commit is contained in:
parent
497b5649cf
commit
28873a7050
|
@ -680,7 +680,7 @@ _Py_COMP_DIAG_POP
|
|||
assert(size > 0);
|
||||
len = PyUnicode_AsWideChar(t, P, size);
|
||||
assert(len >= 0);
|
||||
assert(len < size);
|
||||
assert((unsigned)len < size);
|
||||
size -= (DWORD)len + 1;
|
||||
P += len + 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue