https://github.com/python/cpython/commit/5aa8234cce8b6746006b7d38f10763abf1393574 commit: 5aa8234cce8b6746006b7d38f10763abf1393574 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: emmatyping <[email protected]> date: 2026-04-21T13:31:46-07:00 summary:
[3.14] gh-146578: _zstd: Fix printf format for pledged size errors (GH-146576) (#148855) gh-146578: _zstd: Fix printf format for pledged size errors (GH-146576) Use %llu instead of %ull for unsigned long long in zstd_contentsize_converter ValueError messages. (cherry picked from commit 09233bd19879284395aff97d7357b693893e6dd7) Co-authored-by: cui <[email protected]> files: M Modules/_zstd/compressor.c diff --git a/Modules/_zstd/compressor.c b/Modules/_zstd/compressor.c index 508b136817872b..45a1dd8da29073 100644 --- a/Modules/_zstd/compressor.c +++ b/Modules/_zstd/compressor.c @@ -74,7 +74,7 @@ zstd_contentsize_converter(PyObject *size, unsigned long long *p) if (PyErr_ExceptionMatches(PyExc_OverflowError)) { PyErr_Format(PyExc_ValueError, "size argument should be a positive int less " - "than %ull", ZSTD_CONTENTSIZE_ERROR); + "than %llu", ZSTD_CONTENTSIZE_ERROR); return 0; } return 0; @@ -83,7 +83,7 @@ zstd_contentsize_converter(PyObject *size, unsigned long long *p) *p = ZSTD_CONTENTSIZE_ERROR; PyErr_Format(PyExc_ValueError, "size argument should be a positive int less " - "than %ull", ZSTD_CONTENTSIZE_ERROR); + "than %llu", ZSTD_CONTENTSIZE_ERROR); return 0; } *p = pledged_size; _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
