Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-116386: Fix format string "%ld" warning in _xxinterpqueuesmodule #116387

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

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Mar 5, 2024

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

LGTM. No warnings on macOS.

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

Would not be more natural to use the %zd format string?

And this looks like a completely different issue than the originally reported one.

@ericsnowcurrently
Copy link
Member

Would not be more natural to use the %zd format string?

Yeah, that was a copy-paste failure on my part. I shouldn't have used PRId64 for _queue.count since it is Py_ssize_t, not int64_t. Using %zd sounds right.

And this looks like a completely different issue than the originally reported one.

This is a fix for my fix (gh-116369) for that originally reported issue.

@bedevere-app
Copy link

bedevere-app bot commented Mar 6, 2024

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

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

LGTM

@sobolevn sobolevn merged commit 40b79ef into python:main Mar 7, 2024
@sobolevn
Copy link
Member Author

sobolevn commented Mar 7, 2024

Thanks for the help and reviews!

@ericsnowcurrently
Copy link
Member

Thanks for fixing this. 😄

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
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