mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
r3007: uint32 values need to be stored in Python longs, as on 32-bit machines
Python ints can only hold int32 values.
This commit is contained in:
parent
5c46747c36
commit
7c5ada63bf
@ -29,7 +29,11 @@
|
||||
PyErr_SetString(PyExc_TypeError, "integer expected");
|
||||
return NULL;
|
||||
}
|
||||
$1 = (uint32_t)PyInt_AsLong($input);
|
||||
$1 = (uint32_t)PyLong_AsLong($input);
|
||||
}
|
||||
|
||||
%typemap(out) uint32 {
|
||||
$1 = PyLong_FromLong($input);
|
||||
}
|
||||
|
||||
%typemap(out) NTSTATUS {
|
||||
|
Loading…
Reference in New Issue
Block a user