diff options
author | Andrew Bartlett <abartlet@samba.org> | 2020-03-15 10:36:59 +1300 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2020-03-23 19:12:43 +0000 |
commit | 5c1867ba459c2eff0dfc99c92200aecc2d44df59 (patch) | |
tree | b4d32c7bdfe1b79a715f66fd4eec328c5c7f5404 /source4/lib/wmi | |
parent | 4764e8b4c7e459f6aa5861d26ffaec3a3026d77f (diff) | |
download | samba-5c1867ba459c2eff0dfc99c92200aecc2d44df59.tar.gz |
py3: Remove #define PyInt_FromLong PyLong_FromLong
This allows us to end the use of Python 2/3 compatability macros.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power
Diffstat (limited to 'source4/lib/wmi')
-rw-r--r-- | source4/lib/wmi/wmi_wrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/wmi/wmi_wrap.c b/source4/lib/wmi/wmi_wrap.c index 6732f4ed5cb..f8200bac92a 100644 --- a/source4/lib/wmi/wmi_wrap.c +++ b/source4/lib/wmi/wmi_wrap.c @@ -2803,14 +2803,14 @@ SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) } - #define SWIG_From_long PyInt_FromLong + #define SWIG_From_long PyLong_FromLong SWIGINTERNINLINE PyObject* SWIG_From_unsigned_SS_long (unsigned long value) { return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)(value)); + PyLong_FromUnsignedLong(value) : PyLong_FromLong((long)(value)); } |