Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-36027 bpo-36974: Fix "incompatible pointer type" compiler warnings #13758

Merged
merged 1 commit into from
Jun 2, 2019

Conversation

encukou
Copy link
Member

@encukou encukou commented Jun 2, 2019

@encukou encukou merged commit e584cbf into python:master Jun 2, 2019
@encukou encukou deleted the warning-fix branch June 2, 2019 23:08
@@ -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)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong, it should be PyLongObject.
#13761 is the proper fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants