From 47019e500cea31e9ad647bc2d57e47eafc2ef356 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 15 Aug 2010 17:41:31 +0000 Subject: [PATCH] Fix (harmless) warning with MSVC. --- Objects/bytes_methods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c index 099cee60a50..ef91b7f3376 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]; }