mirror of
https://github.com/python/cpython.git
synced 2025-01-19 15:05:15 +08:00
Fix (harmless) warning with MSVC.
This commit is contained in:
parent
9b491923b8
commit
47019e500c
@ -417,7 +417,7 @@ _Py_bytes_maketrans(PyObject *args)
|
||||
}
|
||||
p = PyBytes_AS_STRING(res);
|
||||
for (i = 0; i < 256; i++)
|
||||
p[i] = i;
|
||||
p[i] = (char) i;
|
||||
for (i = 0; i < bfrm.len; i++) {
|
||||
p[((unsigned char *)bfrm.buf)[i]] = ((char *)bto.buf)[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user