From 565c75d9a83d6f4d7dd54f858136bf17301e55e6 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 3 Jun 2019 01:58:34 +0200 Subject: [PATCH] bpo-36027: Really fix "incompatible pointer type" compiler warning Apologies for the earlier hasty attempt. --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 858e256ac0b417..a1103f697c7379 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -4243,7 +4243,7 @@ long_invmod(PyLongObject *a, PyLongObject *n) Py_DECREF(c); Py_DECREF(n); - if (long_compare(a, (PyObject *)_PyLong_One)) { + if (long_compare(a, (PyLongObject *)_PyLong_One)) { /* a != 1; we don't have an inverse. */ Py_DECREF(a); Py_DECREF(b);