diff options
author | Tim Potter <tpot@samba.org> | 2004-10-17 00:37:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:57 -0500 |
commit | 85a2db200a11ebc4f325f9da8bfda29c3fa403c6 (patch) | |
tree | 492f2d81f61e84dc8833a7929c184503cedb6496 /source4/scripting/swig/samba.i | |
parent | c7a762bc748c63049d237de176167a13d1b8b0de (diff) | |
download | samba-85a2db200a11ebc4f325f9da8bfda29c3fa403c6.tar.gz samba-85a2db200a11ebc4f325f9da8bfda29c3fa403c6.tar.bz2 samba-85a2db200a11ebc4f325f9da8bfda29c3fa403c6.zip |
r3010: Do some more PyInt vs PyLong checks.
(This used to be commit b19dc6cd9c1ac44d970b092f09cf96c737a90fdd)
Diffstat (limited to 'source4/scripting/swig/samba.i')
-rw-r--r-- | source4/scripting/swig/samba.i | 5 |
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)); } - |