1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

r3010: Do some more PyInt vs PyLong checks.

This commit is contained in:
Tim Potter 2004-10-17 00:37:36 +00:00 committed by Gerald (Jerry) Carter
parent 89da7a9196
commit b19dc6cd9c

View File

@ -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));
}