diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-05-13 13:34:04 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-05-13 13:34:04 (GMT) |
commit | 822f34a848de4d19f9d7cca5bb99424e5dd34303 (patch) | |
tree | c7fa18208327d73d5a0ed295211e41742de49466 /Objects/stringobject.c | |
parent | 90df06e5e2cf839d94e54bad57e524dca2a3ec42 (diff) | |
download | cpython-822f34a848de4d19f9d7cca5bb99424e5dd34303.zip cpython-822f34a848de4d19f9d7cca5bb99424e5dd34303.tar.gz cpython-822f34a848de4d19f9d7cca5bb99424e5dd34303.tar.bz2 |
Revert 43315: Printing of %zd must be signed.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 166411a..01a4bb4 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -275,8 +275,8 @@ PyString_FromFormatV(const char *format, va_list vargs) if (longflag) sprintf(s, "%ld", va_arg(vargs, long)); else if (size_tflag) - sprintf(s, "%" PY_FORMAT_SIZE_T "u", - va_arg(vargs, size_t)); + sprintf(s, "%" PY_FORMAT_SIZE_T "d", + va_arg(vargs, Py_ssize_t)); else sprintf(s, "%d", va_arg(vargs, int)); s += strlen(s); |