diff Objects/bytes_methods.c @ 64045:de46e4250431 3.1

Merged revisions 84070,84074 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84070 | antoine.pitrou | 2010-08-15 19:12:55 +0200 (dim., 15 août 2010) | 5 lines Fix some compilation warnings under 64-bit Windows (issue #9566). Some of these are genuine bugs with objects bigger than 2GB, but my system doesn't allow me to write tests for it. ........ r84074 | antoine.pitrou | 2010-08-15 19:41:31 +0200 (dim., 15 août 2010) | 3 lines Fix (harmless) warning with MSVC. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Sun, 15 Aug 2010 17:46:50 +0000
parents 7a54848d4929
children 586745894ab8
line wrap: on
line diff
--- a/Objects/bytes_methods.c	Sun Aug 15 17:40:03 2010 +0000
+++ b/Objects/bytes_methods.c	Sun Aug 15 17:46:50 2010 +0000
@@ -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];
     }