mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #10951: Fix compiler warnings in timemodule.c and unicodeobject.c
Thanks Jérémy Anger for the fix.
This commit is contained in:
commit
ab870218e3
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue