mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08: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 New Issue
Block a user