Skip to content

Conversation

@picnixz
Copy link
Member

@picnixzpicnixz commented Jul 31, 2024

@picnixzpicnixz changed the title simplify conversionsgh-94512: Fix forced arg format in AC-processed posixmodule.cJul 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
MemberAuthor

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-aaslanderlend-aasland merged commit f6cc7c8 into python:mainOct 26, 2024
@picnixzpicnixz deleted the forced-arg-in-AC-posixmodule branch October 26, 2024 22:15
Sign up for freeto 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

@picnixz@erlend-aasland