From 754a987c084743a71214f5381673ef56168f9376 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 19 Dec 2018 17:14:08 +0100 Subject: [PATCH] [py] py-cvec uses PyLong_FromLong --- python/ext/py-cvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0