Skip to content

gh-94512: Fix forced arg format in AC-processed posixmodule.c - #122516

Merged
erlend-aasland merged 5 commits into
python:mainfrom
picnixz:forced-arg-in-AC-posixmodule
Oct 26, 2024
Merged

gh-94512: Fix forced arg format in AC-processed posixmodule.c#122516
erlend-aasland merged 5 commits into
python:mainfrom
picnixz:forced-arg-in-AC-posixmodule

Conversation

@picnixz

@picnixzpicnixz commented Jul 31, 2024

Copy link
Copy Markdown
Member

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Thanks, Bénédikt!

@erlend-aasland
erlend-aasland merged commit f6cc7c8 into python:mainOct 26, 2024
@picnixz
picnixz 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