summaryrefslogtreecommitdiff
path: root/pidl
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 /pidl
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 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Python.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 84d4dade512..b2a65cc7376 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -1754,7 +1754,7 @@ sub ConvertObjectFromPythonData($$$$$$;$$)
$self->pidl("}");
$self->pidl("$target = test_var;");
$self->deindent;
- $self->pidl("} else if (PyInt_Check($cvar)) {");
+ $self->pidl("} else if (PyLong_Check($cvar)) {");
$self->indent;
$self->pidl("long test_var;");
$self->pidl("test_var = PyInt_AsLong($cvar);");
@@ -1806,7 +1806,7 @@ sub ConvertObjectFromPythonData($$$$$$;$$)
$self->pidl("}");
$self->pidl("$target = test_var;");
$self->deindent;
- $self->pidl("} else if (PyInt_Check($cvar)) {");
+ $self->pidl("} else if (PyLong_Check($cvar)) {");
$self->indent;
$self->pidl("long test_var;");
$self->pidl("test_var = PyInt_AsLong($cvar);");