diff options
Diffstat (limited to 'Objects/bytes_methods.c')
-rw-r--r-- | Objects/bytes_methods.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c index 099cee6..ef91b7f 100644 --- a/Objects/bytes_methods.c +++ b/Objects/bytes_methods.c @@ -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]; } |