summaryrefslogtreecommitdiff
path: root/source4/lib/wmi
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-03-15 10:36:59 +1300
committerNoel Power <npower@samba.org>2020-03-23 19:12:43 +0000
commit5c1867ba459c2eff0dfc99c92200aecc2d44df59 (patch)
treeb4d32c7bdfe1b79a715f66fd4eec328c5c7f5404 /source4/lib/wmi
parent4764e8b4c7e459f6aa5861d26ffaec3a3026d77f (diff)
downloadsamba-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.c4
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));
}