py3: Remove #define PyInt_AsLong PyLong_AsLong
[samba.git] / pidl / lib / Parse / Pidl / Samba4 / Python.pm
index 8eb50c8208b095411b4bd56f61bd606078b7f7d5..93ab67f5f3c007763b9ed95dcd4cfd4b550c6f16 100644 (file)
@@ -1856,17 +1856,17 @@ sub ConvertObjectFromPythonData($$$$$$;$$)
        }
 
        if ($actual_ctype->{TYPE} eq "SCALAR" and $actual_ctype->{NAME} eq "NTSTATUS") {
-               $self->pidl("$target = NT_STATUS(PyInt_AsLong($cvar));");
+               $self->pidl("$target = NT_STATUS(PyLong_AsLong($cvar));");
                return;
        }
 
        if ($actual_ctype->{TYPE} eq "SCALAR" and $actual_ctype->{NAME} eq "WERROR") {
-               $self->pidl("$target = W_ERROR(PyInt_AsLong($cvar));");
+               $self->pidl("$target = W_ERROR(PyLong_AsLong($cvar));");
                return;
        }
 
        if ($actual_ctype->{TYPE} eq "SCALAR" and $actual_ctype->{NAME} eq "HRESULT") {
-               $self->pidl("$target = HRES_ERROR(PyInt_AsLong($cvar));");
+               $self->pidl("$target = HRES_ERROR(PyLong_AsLong($cvar));");
                return;
        }