mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Fix unused variable and signed/unsigned warnings (GH-15537)
This commit is contained in:
parent
8bf5fef873
commit
0138c4ceab
3 changed files with 9 additions and 3 deletions
|
@ -57,7 +57,7 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen,
|
|||
}
|
||||
resultlen += arglen * 2;
|
||||
|
||||
if (abs_bytes_per_sep >= arglen) {
|
||||
if ((size_t)abs_bytes_per_sep >= (size_t)arglen) {
|
||||
bytes_per_sep_group = 0;
|
||||
abs_bytes_per_sep = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue