Skip to content

Commit d7a2f2e

Browse files
committed
_zstd: Fix printf format for pledged size errors
Use %llu instead of %ull for unsigned long long in zstd_contentsize_converter ValueError messages.
1 parent 578d726 commit d7a2f2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_zstd/compressor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ zstd_contentsize_converter(PyObject *size, unsigned long long *p)
7474
if (PyErr_ExceptionMatches(PyExc_OverflowError)) {
7575
PyErr_Format(PyExc_ValueError,
7676
"size argument should be a positive int less "
77-
"than %ull", ZSTD_CONTENTSIZE_ERROR);
77+
"than %llu", ZSTD_CONTENTSIZE_ERROR);
7878
return 0;
7979
}
8080
return 0;
@@ -83,7 +83,7 @@ zstd_contentsize_converter(PyObject *size, unsigned long long *p)
8383
*p = ZSTD_CONTENTSIZE_ERROR;
8484
PyErr_Format(PyExc_ValueError,
8585
"size argument should be a positive int less "
86-
"than %ull", ZSTD_CONTENTSIZE_ERROR);
86+
"than %llu", ZSTD_CONTENTSIZE_ERROR);
8787
return 0;
8888
}
8989
*p = pledged_size;

0 commit comments

Comments
 (0)