summaryrefslogtreecommitdiffstats
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2019-06-03 00:28:29 (GMT)
committerGitHub <noreply@github.com>2019-06-03 00:28:29 (GMT)
commit1e375c6269e9de4f3d05d4aa6d6d74e00f522d63 (patch)
tree326597e76531ddfaf93d818875033e0062af7c61 /Objects/longobject.c
parentbe718c33f06b3496faa61142df24fb071fd5d1f1 (diff)
downloadcpython-1e375c6269e9de4f3d05d4aa6d6d74e00f522d63.zip
cpython-1e375c6269e9de4f3d05d4aa6d6d74e00f522d63.tar.gz
cpython-1e375c6269e9de4f3d05d4aa6d6d74e00f522d63.tar.bz2
bpo-36027: Really fix "incompatible pointer type" compiler warning (GH-13761)
Apologies for the earlier hasty attempt.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 858e256..a1103f6 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);