8000 gh-131311: Extract _replace_array_elements from PyCStructUnionType_update_stginfo by sergey-miryanov · Pull Request #131504 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-131311: Extract _replace_array_elements from PyCStructUnionType_update_stginfo #131504

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
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 comment for _replace_array_elements
  • Loading branch information
sergey-miryanov committed Mar 20, 2025
commit fe887eb8454036b3086a4b9e3cce5d73051cfd5d
4 changes: 2 additions & 2 deletions Modules/_ctypes/stgdict.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,8 @@ PyCStructUnionType_update_stginfo(PyObject *type, PyObject *fields, int isStruct
}

/*
Copy array elements to stginfo->ffi_type_pointer.elements. Return -1 if error
occured.
Replace array elements at stginfo->ffi_type_pointer.elements.
Return -1 if error occured.
*/
int
_replace_array_elements(ctypes_state *st, PyObject *layout_fields,
Expand Down
Loading
0