Fix (harmless) warning with MSVC.

This commit is contained in:
Antoine Pitrou 2010-08-15 17:41:31 +00:00
parent 9b491923b8
commit 47019e500c
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}