From 355cf87b93207feb7a09c36c27f389531eeeecd3 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Fri, 27 Aug 2021 10:06:45 +0200 Subject: [PATCH] use correct format specifier. --- src/python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python.c b/src/python.c index 256828c..73f2fd8 100644 --- a/src/python.c +++ b/src/python.c @@ -5744,7 +5744,7 @@ python_kore_curl_setopt(struct pycurl_data *data, long opt, PyObject *value) } if (py_curlopt[i].name == NULL) { - PyErr_Format(PyExc_RuntimeError, "invalid option '%d'", opt); + PyErr_Format(PyExc_RuntimeError, "invalid option '%ld'", opt); return (NULL); }