]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/_helpers.c
checked_malloc: use %z to format size_t; enable -Wformat=2
[bup.git] / lib / bup / _helpers.c
index 489bd14768884ad346693266b80792f7aa53151f..a6ffd322e1ea73bdafaaa9f34c0dc7e948931518 100644 (file)
@@ -129,7 +129,7 @@ static void *checked_malloc(size_t n, size_t size)
     if (__builtin_mul_overflow(n, size, &total))
     {
         PyErr_Format(PyExc_OverflowError,
-                     "request to allocate %lu items of size %lu is too large",
+                     "request to allocate %zu items of size %zu is too large",
                      n, size);
         return NULL;
     }