Skip to content

bpo-39943: Keep constness of pointer objects. #19405

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
Apr 10, 2020
Merged

bpo-39943: Keep constness of pointer objects. #19405

merged 2 commits into from
Apr 10, 2020

Conversation

petdance
Copy link
Contributor

@petdance petdance commented Apr 7, 2020

Also moved an auto variable that got consted into its innermost necessary scope.

https://bugs.python.org/issue39943

Also moved an auto variable that got consted into its innermost necessary scope.
@benjaminp benjaminp merged commit 38ada3b into python:master Apr 10, 2020
@@ -2892,7 +2891,7 @@ PyType_FromSpecWithBases(PyType_Spec *spec, PyObject *bases)
}

/* Set the type name and qualname */
s = strrchr(spec->name, '.');
const char *s = strrchr(spec->name, '.');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching this. I'll keep an eye out for those.

@petdance petdance deleted the const-Objects-typeobject-C branch April 10, 2020 02:17
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