summaryrefslogtreecommitdiff
path: root/typewrappers.c
diff options
context:
space:
mode:
Diffstat (limited to 'typewrappers.c')
-rw-r--r--typewrappers.c2
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 *