8000 bpo-47164: Add _PyASCIIObject_CAST() macro by vstinner · Pull Request #32191 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-47164: Add _PyASCIIObject_CAST() macro #32191

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 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo in _PyUnicode_GET_LENGTH()
  • Loading branch information
vstinner committed Mar 31, 2022
commit 8a1ff77257530ac2f4f0220ee5bb080f424fcfad
2 changes: 1 addition & 1 deletion Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ extern "C" {
_PyASCIIObject_CAST(op)->state.kind)
#define _PyUnicode_GET_LENGTH(op) \
(assert(_PyUnicode_CHECK(op)), \
(_PyASCIIObject_CAST(op)->length)
_PyASCIIObject_CAST(op)->length)
#define _PyUnicode_DATA_ANY(op) \
(_PyUnicodeObject_CAST(op)->data.any)

Expand Down
0