Commit 47019e50 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix (harmless) warning with MSVC.

parent 9b491923
...@@ -417,7 +417,7 @@ _Py_bytes_maketrans(PyObject *args) ...@@ -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];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment