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:
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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user