mirror of https://github.com/python/cpython
Revert 43315: Printing of %zd must be signed.
This commit is contained in:
parent
90df06e5e2
commit
822f34a848
|
@ -275,8 +275,8 @@ PyString_FromFormatV(const char *format, va_list vargs)
|
||||||
if (longflag)
|
if (longflag)
|
||||||
sprintf(s, "%ld", va_arg(vargs, long));
|
sprintf(s, "%ld", va_arg(vargs, long));
|
||||||
else if (size_tflag)
|
else if (size_tflag)
|
||||||
sprintf(s, "%" PY_FORMAT_SIZE_T "u",
|
sprintf(s, "%" PY_FORMAT_SIZE_T "d",
|
||||||
va_arg(vargs, size_t));
|
va_arg(vargs, Py_ssize_t));
|
||||||
else
|
else
|
||||||
sprintf(s, "%d", va_arg(vargs, int));
|
sprintf(s, "%d", va_arg(vargs, int));
|
||||||
s += strlen(s);
|
s += strlen(s);
|
||||||
|
|
Loading…
Reference in New Issue