From 1fc5c01f197e2bec97b43020ebd0c3176a2acc95 Mon Sep 17 00:00:00 2001 From: Dwayne Litzenberger Date: Sun, 29 Sep 2013 17:18:54 -0700 Subject: block_template: Fix compiler warning (%i -> %zi) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes this warning: In file included from src/CAST.c:453:0: src/block_template.c: In function ‘ALG_Encrypt’: src/block_template.c:426:12: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘Py_ssize_t’ [-Wformat=] ctr->buf_size, BLOCK_SIZE); ^ --- src/block_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/block_template.c b/src/block_template.c index f146b43..f940e0e 100644 --- a/src/block_template.c +++ b/src/block_template.c @@ -422,7 +422,7 @@ ALG_Encrypt(ALGobject *self, PyObject *args) Py_BLOCK_THREADS; PyErr_Format(PyExc_TypeError, "CTR counter function returned " - "string of length %i, not %i", + "string of length %zi, not %i", ctr->buf_size, BLOCK_SIZE); free(buffer); return NULL; -- cgit v1.2.1