summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2019-06-03 01:08:14 +0200
committerGitHub <noreply@github.com>2019-06-03 01:08:14 +0200
commite584cbff1ea78e700cf9943d50467e3b58301ccc (patch)
treee3f64bee311c5dd2fd71e05211a0a2ca817fb291 /Objects/longobject.c
parentc6789d6c85a290a35f3839efb52a3d34536dcebe (diff)
downloadcpython-git-e584cbff1ea78e700cf9943d50467e3b58301ccc.tar.gz
bpo-36027 bpo-36974: Fix "incompatible pointer type" compiler warnings (GH-13758)
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 49f1420bf6..858e256ac0 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, _PyLong_One)) {
+ if (long_compare(a, (PyObject *)_PyLong_One)) {
/* a != 1; we don't have an inverse. */
Py_DECREF(a);
Py_DECREF(b);