diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2023-02-13 14:47:22 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2023-02-13 14:51:47 +0100 |
commit | ed4ebba5b6ef04403c8a3fe11cde4f263ba0c8a2 (patch) | |
tree | 0fd27ff2dfdc6a66b5474e2d546940055f67cdb2 | |
parent | 4d0e586061eaa1a7a6723783a87c535c1ec42b80 (diff) | |
download | libvirt-python-ed4ebba5b6ef04403c8a3fe11cde4f263ba0c8a2.tar.gz |
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 <mprivozn@redhat.com>
-rw-r--r-- | typewrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 * |