py3: Remove #define PyInt_AsLong PyLong_AsLong
[samba.git] / source4 / librpc / rpc / pyrpc.c
index 33841ae0f119777bc755a0b2511f596919f40e32..be914ed5f14be3402acf0645a936bbf4b72e0381 100644 (file)
@@ -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;
        }