summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-03-15 10:32:11 +1300
committerNoel Power <npower@samba.org>2020-03-23 19:12:43 +0000
commit4764e8b4c7e459f6aa5861d26ffaec3a3026d77f (patch)
treea9627bbb9177daf4fb2e33686e81c10abecf4759 /source4/librpc
parentcc79726d95108e3d8ef612a863c2f9fffd768636 (diff)
downloadsamba-4764e8b4c7e459f6aa5861d26ffaec3a3026d77f.tar.gz
py3: Remove #define PyInt_AsLong PyLong_AsLong
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 <npower@samba.org>
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/pyrpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index 33841ae0f11..be914ed5f14 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -78,7 +78,7 @@ static bool ndr_syntax_from_py_object(PyObject *object, struct ndr_syntax_id *sy
return false;
}
- syntax_id->if_version = PyInt_AsLong(item);
+ syntax_id->if_version = PyLong_AsLong(item);
return true;
}