Skip to content

Conversation

@picnixz
Copy link
Member

@picnixz picnixz commented Jul 31, 2024

@picnixz picnixz changed the title simplify conversions gh-94512: Fix forced arg format in AC-processed posixmodule.c Jul 31, 2024
ival = PyLong_AsSsize_t(iobj);
Py_DECREF(iobj);
}
if (ival == -1 && PyErr_Occurred()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should teach Argument Clinic to generate this as:

        if (ival == (Py_ssize_t)-1 && PyErr_Occurred()) {

Copy link
Member Author

Choose a reason for hiding this comment

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

I can work on a fix tomorrow if you want?

@erlend-aasland
Copy link
Contributor

Thanks, Bénédikt!

@erlend-aasland erlend-aasland merged commit f6cc7c8 into python:main Oct 26, 2024
38 checks passed
@picnixz picnixz deleted the forced-arg-in-AC-posixmodule branch October 26, 2024 22:15
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.

2 participants