1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

pidl: Call PyLong_FromLongLong() directly rather than via inline helper

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett 2019-05-06 11:24:39 +12:00 committed by Gary Lockyer
parent b0714c70ea
commit 819ee849cb

View File

@ -2025,7 +2025,7 @@ sub ConvertScalarToPython($$$$)
$ctypename = expandAlias($ctypename);
if ($ctypename =~ /^(int64|dlong)$/) {
return "ndr_PyLong_FromLongLong($cvar)";
return "PyLong_FromLongLong($cvar)";
}
if ($ctypename =~ /^(uint64|hyper|NTTIME_hyper|NTTIME|NTTIME_1sec|udlong|udlongr|uid_t|gid_t)$/) {
@ -2316,11 +2316,6 @@ static inline long long ndr_sizeof2intmax(size_t var_size)
return 0;
}
static inline PyObject *ndr_PyLong_FromLongLong(long long v)
{
return PyLong_FromLongLong(v);
}
static inline PyObject *ndr_PyLong_FromUnsignedLongLong(unsigned long long v)
{
return PyLong_FromUnsignedLongLong(v);