mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix (harmless) warning with MSVC.
This commit is contained in:
parent
9b491923b8
commit
47019e500c
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ _Py_bytes_maketrans(PyObject *args)
|
||||||
}
|
}
|
||||||
p = PyBytes_AS_STRING(res);
|
p = PyBytes_AS_STRING(res);
|
||||||
for (i = 0; i < 256; i++)
|
for (i = 0; i < 256; i++)
|
||||||
p[i] = i;
|
p[i] = (char) i;
|
||||||
for (i = 0; i < bfrm.len; i++) {
|
for (i = 0; i < bfrm.len; i++) {
|
||||||
p[((unsigned char *)bfrm.buf)[i]] = ((char *)bto.buf)[i];
|
p[((unsigned char *)bfrm.buf)[i]] = ((char *)bto.buf)[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue