diff options
author | Petr Viktorin <encukou@gmail.com> | 2019-06-02 23:08:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-02 23:08:14 (GMT) |
commit | e584cbff1ea78e700cf9943d50467e3b58301ccc (patch) | |
tree | e3f64bee311c5dd2fd71e05211a0a2ca817fb291 /Objects | |
parent | c6789d6c85a290a35f3839efb52a3d34536dcebe (diff) | |
download | cpython-e584cbff1ea78e700cf9943d50467e3b58301ccc.zip cpython-e584cbff1ea78e700cf9943d50467e3b58301ccc.tar.gz cpython-e584cbff1ea78e700cf9943d50467e3b58301ccc.tar.bz2 |
bpo-36027 bpo-36974: Fix "incompatible pointer type" compiler warnings (GH-13758)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 49f1420..858e256 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); |