Skip to content

Commit 47019e5

Browse files
committed
Fix (harmless) warning with MSVC.
1 parent 9b49192 commit 47019e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Objects/bytes_methods.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ _Py_bytes_maketrans(PyObject *args)
417417
}
418418
p = PyBytes_AS_STRING(res);
419419
for (i = 0; i < 256; i++)
420-
p[i] = i;
420+
p[i] = (char) i;
421421
for (i = 0; i < bfrm.len; i++) {
422422
p[((unsigned char *)bfrm.buf)[i]] = ((char *)bto.buf)[i];
423423
}

0 commit comments

Comments
 (0)