1
0
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:
Tim Potter 2004-10-17 00:20:57 +00:00 committed by Gerald (Jerry) Carter
parent 5c46747c36
commit 7c5ada63bf

View File

@ -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 {