summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/samba.i
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig/samba.i')
-rw-r--r--source4/scripting/swig/samba.i5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/scripting/swig/samba.i b/source4/scripting/swig/samba.i
index 065cc7269f..38a5251a08 100644
--- a/source4/scripting/swig/samba.i
+++ b/source4/scripting/swig/samba.i
@@ -25,7 +25,7 @@
*/
%typemap(in) uint32 {
- if (!PyInt_Check($input)) {
+ if (!PyInt_Check($input) && !PyLong_Check($input)) {
PyErr_SetString(PyExc_TypeError, "integer expected");
return NULL;
}
@@ -37,6 +37,5 @@
}
%typemap(out) NTSTATUS {
- $result = PyInt_FromLong(NT_STATUS_V($1));
+ $result = PyLong_FromLong(NT_STATUS_V($1));
}
-