summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-17 22:39:43 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-17 22:39:43 +0100
commitab870218e341724aaf983df9e6e7a425edcbd88b (patch)
tree76095f085464fd842caed7a648c484d079920295 /Objects/unicodeobject.c
parent0ba5af20c049bc4c38002c108a1838f27cd793d8 (diff)
parent136ea49b3990d4ed1600be0d042c3676cfcece0f (diff)
downloadcpython-git-ab870218e341724aaf983df9e6e7a425edcbd88b.tar.gz
Issue #10951: Fix compiler warnings in timemodule.c and unicodeobject.c
Thanks Jérémy Anger for the fix.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 3f70af7e37..f5f1c46f24 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -4832,7 +4832,7 @@ PyUnicode_DecodeUTF8Stateful(const char *s,
if (maxchar < 128 && size == unicode_size) {
if (consumed)
*consumed = size;
- return unicode_fromascii(s, size);
+ return unicode_fromascii((const unsigned char *)s, size);
}
unicode = PyUnicode_New(unicode_size, maxchar);