Issue #10951: Fix compiler warnings in timemodule.c and unicodeobject.c

Thanks Jérémy Anger for the fix.
This commit is contained in:
Victor Stinner 2011-12-17 22:39:43 +01:00
commit ab870218e3
2 changed files with 5 additions and 1 deletions

View file

@ -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);