diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-05-06 11:22:55 +1200 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-05-06 05:46:11 +0000 |
commit | b0714c70ea52e9a3a1f34d1c3c1642820e6acacf (patch) | |
tree | ec306b489d17ee2631fc3c829b3dc14e71fa8505 /pidl | |
parent | 26d8d68ca3c659d4957a9bf001e8efa5dc9fefb5 (diff) | |
download | samba-b0714c70ea52e9a3a1f34d1c3c1642820e6acacf.tar.gz |
pidl: Always call PyLong_FromUnsignedLongLong() in ndr_PyLong_FromUnsignedLongLong()
The C type is "unsigned long long" so use that always, as the Python type is now always the same.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'pidl')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Python.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index 4530b113bf6..d01bce28b50 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -2323,11 +2323,7 @@ static inline PyObject *ndr_PyLong_FromLongLong(long long v) static inline PyObject *ndr_PyLong_FromUnsignedLongLong(unsigned long long v) { - if (v > LONG_MAX) { - return PyLong_FromUnsignedLongLong(v); - } else { - return PyLong_FromLong(v); - } + return PyLong_FromUnsignedLongLong(v); } "); |