From d2cb7a126b7313f870fa626dce34680394999dd7 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Sat, 29 Jun 2013 14:05:48 -0700 Subject: [PATCH] BUG: Fix webp encode errors on win-amd64 --- _webp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_webp.c b/_webp.c index cb872bc28..ac6a26558 100644 --- a/_webp.c +++ b/_webp.c @@ -1,3 +1,4 @@ +#define PY_SSIZE_T_CLEAN #include #include "py3.h" #include @@ -16,7 +17,7 @@ PyObject* WebPEncode_wrapper(PyObject* self, PyObject* args) Py_ssize_t size; size_t ret_size; - if (!PyArg_ParseTuple(args, "s#iifs",(char**)&rgb, &size, &width, &height, &quality_factor, &mode)) { + if (!PyArg_ParseTuple(args, "s#nifs",(char**)&rgb, &size, &width, &height, &quality_factor, &mode)) { Py_RETURN_NONE; }