From ca404aed617e3437d55a07783f3e8e32e0a5ed15 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Sat, 13 Jul 2013 18:45:28 -0700 Subject: [PATCH] Use correct format character for C int type --- _webp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_webp.c b/_webp.c index 877865406..d857d8c9f 100644 --- a/_webp.c +++ b/_webp.c @@ -24,7 +24,7 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args) Py_ssize_t exif_size; size_t ret_size; - if (!PyArg_ParseTuple(args, "s#nifss#s#", + if (!PyArg_ParseTuple(args, "s#iifss#s#", (char**)&rgb, &size, &width, &height, &quality_factor, &mode, &icc_bytes, &icc_size, &exif_bytes, &exif_size)) { Py_RETURN_NONE;