commit | 47019e500cea31e9ad647bc2d57e47eafc2ef356 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun Aug 15 17:41:31 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun Aug 15 17:41:31 2010 +0000 |
tree | b707fb13d3e256df284b71d3ea5bd41cb3c55044 | |
parent | 9b491923b8a7bf502bb09670ce6c2829461e8a48 [diff] [blame] |
Fix (harmless) warning with MSVC.
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 @@ } 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]; }