diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2023-02-13 14:20:32 +0100 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2023-02-13 14:51:11 +0100 |
commit | 4d0e586061eaa1a7a6723783a87c535c1ec42b80 (patch) | |
tree | cbf473280562bbfb62d771c6df65702222b834e9 | |
parent | f8fefdf45c6ba1235f0c9ca454e5ea8f27a83607 (diff) | |
download | libvirt-python-4d0e586061eaa1a7a6723783a87c535c1ec42b80.tar.gz |
typewrappers: Rework libvirt_uintWrap()
Python C API offers PyLong_FromUnsignedLong() which allows us to
drop typecast.
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 1395728..4c5c1aa 100644 --- a/typewrappers.c +++ b/typewrappers.c @@ -32,7 +32,7 @@ libvirt_intWrap(int val) PyObject * libvirt_uintWrap(unsigned int val) { - return PyLong_FromLong((long) val); + return PyLong_FromUnsignedLong(val); } PyObject * |