mirror of
https://github.com/samba-team/samba.git
synced 2025-12-02 00:23:50 +03:00
r3010: Do some more PyInt vs PyLong checks.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
89da7a9196
commit
b19dc6cd9c
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user