From: Petr Viktorin Date: Mon, 3 Jun 2019 00:28:29 +0000 (+0200) Subject: bpo-36027: Really fix "incompatible pointer type" compiler warning (GH-13761) X-Git-Tag: v3.8.0b1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e375c6269e9de4f3d05d4aa6d6d74e00f522d63;p=python bpo-36027: Really fix "incompatible pointer type" compiler warning (GH-13761) Apologies for the earlier hasty attempt. --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 858e256ac0..a1103f697c 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);