projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b49192
)
Fix (harmless) warning with MSVC.
author
Antoine Pitrou
<solipsis@pitrou.net>
Sun, 15 Aug 2010 17:41:31 +0000
(17:41 +0000)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Sun, 15 Aug 2010 17:41:31 +0000
(17:41 +0000)
Objects/bytes_methods.c
patch
|
blob
|
history
diff --git
a/Objects/bytes_methods.c
b/Objects/bytes_methods.c
index 099cee60a50438a4bd867fc2850c7f1c7ed7b81e..ef91b7f3376af54525c5696c06cbe517a6d23676 100644
(file)
--- 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];
}