py3: Remove #define PyInt_Check PyLong_Check
[amitay/samba.git] / pidl / lib / Parse / Pidl / Samba4 / Python.pm
index 84d4dade512db7a5ded39e07cef09a14eca818bf..b2a65cc7376f73cb3640d0485406a97a07300913 100644 (file)
@@ -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);");