summaryrefslogtreecommitdiff
path: root/libcli/nbt
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2020-03-15 10:04:52 +1300
committerNoel Power <npower@samba.org>2020-03-23 19:12:43 +0000
commit3aea3b15381857bf3e9a69477c487c91f1b6cbbd (patch)
treedc0c13221ab978bf7d1d1e780003689222f931c2 /libcli/nbt
parent9bdc5a674288a25d4aafda5cb105d57e5c5636f0 (diff)
downloadsamba-3aea3b15381857bf3e9a69477c487c91f1b6cbbd.tar.gz
py3: Remove #define PyInt_Check PyLong_Check
This will allow us to remove some unused code in the PIDL-generated python bindings. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Noel Power <npower@samba.org>
Diffstat (limited to 'libcli/nbt')
-rw-r--r--libcli/nbt/pynbt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/nbt/pynbt.c b/libcli/nbt/pynbt.c
index a562f6dcb5e..1148da7289d 100644
--- a/libcli/nbt/pynbt.c
+++ b/libcli/nbt/pynbt.c
@@ -79,7 +79,7 @@ static bool PyObject_AsDestinationTuple(PyObject *obj, const char **dest_addr, u
if (PyTuple_Size(obj) == 1) {
*dest_port = NBT_NAME_SERVICE_PORT;
return true;
- } else if (PyInt_Check(PyTuple_GetItem(obj, 1))) {
+ } else if (PyLong_Check(PyTuple_GetItem(obj, 1))) {
*dest_port = PyInt_AsLong(PyTuple_GetItem(obj, 1));
return true;
} else {