From ed4ebba5b6ef04403c8a3fe11cde4f263ba0c8a2 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Mon, 13 Feb 2023 14:47:22 +0100 Subject: typewrappers: Drop typecast in libvirt_intWrap() The libvirt_intWrap() accepts an integer and passes it to PyLong_FromLong() which accepts a long. It's perfectly okay to let compiler do that implicitly. Signed-off-by: Michal Privoznik --- typewrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typewrappers.c b/typewrappers.c index 4c5c1aa..3e34b36 100644 --- a/typewrappers.c +++ b/typewrappers.c @@ -26,7 +26,7 @@ libvirt_buildPyObject(void *cobj, PyObject * libvirt_intWrap(int val) { - return PyLong_FromLong((long) val); + return PyLong_FromLong(val); } PyObject * -- cgit v1.2.1