summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-08-15 17:41:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-08-15 17:41:31 (GMT)
commit47019e500cea31e9ad647bc2d57e47eafc2ef356 (patch)
treeb707fb13d3e256df284b71d3ea5bd41cb3c55044
parent9b491923b8a7bf502bb09670ce6c2829461e8a48 (diff)
downloadcpython-47019e500cea31e9ad647bc2d57e47eafc2ef356.zip
cpython-47019e500cea31e9ad647bc2d57e47eafc2ef356.tar.gz
cpython-47019e500cea31e9ad647bc2d57e47eafc2ef356.tar.bz2
Fix (harmless) warning with MSVC.
-rw-r--r--Objects/bytes_methods.c2
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];
}