mirror of https://github.com/python/cpython
#5929: fix signedness warning.
This commit is contained in:
parent
5815220a68
commit
ba68a99656
|
@ -741,7 +741,7 @@ PyUnicode_FromFormatV(const char *format, va_list vargs)
|
|||
case 's':
|
||||
{
|
||||
/* UTF-8 */
|
||||
unsigned char *s = va_arg(count, unsigned char*);
|
||||
const char *s = va_arg(count, const char*);
|
||||
PyObject *str = PyUnicode_DecodeUTF8(s, strlen(s), "replace");
|
||||
if (!str)
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in New Issue