summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/swig/samba.i6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/scripting/swig/samba.i b/source4/scripting/swig/samba.i
index 6a34f9b148..065cc7269f 100644
--- a/source4/scripting/swig/samba.i
+++ b/source4/scripting/swig/samba.i
@@ -29,7 +29,11 @@
PyErr_SetString(PyExc_TypeError, "integer expected");
return NULL;
}
- $1 = (uint32_t)PyInt_AsLong($input);
+ $1 = (uint32_t)PyLong_AsLong($input);
+}
+
+%typemap(out) uint32 {
+ $1 = PyLong_FromLong($input);
}
%typemap(out) NTSTATUS {