summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwayne Litzenberger <dlitz@dlitz.net>2013-09-29 17:18:54 -0700
committerDwayne Litzenberger <dlitz@dlitz.net>2013-10-20 13:30:22 -0700
commit1fc5c01f197e2bec97b43020ebd0c3176a2acc95 (patch)
treeea732f3c7a3171d08829e9402867216d35b3c833
parentff9009abb830741b94d39c0bc8f98a15dbf464e2 (diff)
downloadpycrypto-1fc5c01f197e2bec97b43020ebd0c3176a2acc95.tar.gz
block_template: Fix compiler warning (%i -> %zi)
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); ^
-rw-r--r--src/block_template.c2
1 files changed, 1 insertions, 1 deletions
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;