Author: tpot
Date: 2004-10-17 00:37:36 +0000 (Sun, 17 Oct 2004)
New Revision: 3010

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/scripting/swig&rev=3010&nolog=1

Log:
Do some more PyInt vs PyLong checks.

Modified:
   branches/SAMBA_4_0/source/scripting/swig/samba.i


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/swig/samba.i
===================================================================
--- branches/SAMBA_4_0/source/scripting/swig/samba.i    2004-10-17 00:27:40 UTC (rev 
3009)
+++ branches/SAMBA_4_0/source/scripting/swig/samba.i    2004-10-17 00:37:36 UTC (rev 
3010)
@@ -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));
 }
-

Reply via email to