From: Paul Brossier Date: Wed, 19 Dec 2018 16:14:08 +0000 (+0100) Subject: [py] py-cvec uses PyLong_FromLong X-Git-Tag: 0.4.9~74 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=754a987c084743a71214f5381673ef56168f9376 [py] py-cvec uses PyLong_FromLong --- diff --git a/python/ext/py-cvec.c b/python/ext/py-cvec.c index 9854b6d6..1c9316a0 100644 --- a/python/ext/py-cvec.c +++ b/python/ext/py-cvec.c @@ -136,7 +136,7 @@ Py_cvec_repr (Py_cvec * self, PyObject * unused) goto fail; } - args = Py_BuildValue ("I", self->length); + args = PyLong_FromLong(self->length); if (args == NULL) { goto fail; }