10000 bpo-38465: Convert the type of ob_exports in PyByteArrayObject to Py_ssize_t by shihai1991 · Pull Request #16746 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-38465: Convert the type of ob_exports in PyByteArrayObject to Py_ssize_t #16746

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 3 commits into from
Oct 21, 2019
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
Next Next commit
Convert the type of ob_exports in PyByteArrayObject to Py_ssize_t.
  • Loading branch information
shihai1991 committed Oct 13, 2019
commit e12c3da8bab83fd2b7cc96f1e2158828e48b8440
9 changes: 4 additions & 5 deletions Include/bytearrayobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ extern "C" {
#ifndef Py_LIMITED_API
typedef struct {
PyObject_VAR_HEAD
Py_ssize_t ob_alloc; /* How many bytes allocated in ob_bytes */
char *ob_bytes; /* Physical backing buffer */
char *ob_start; /* Logical start inside ob_bytes */
/* XXX(nnorwitz): should ob_exports be Py_ssize_t? */
int ob_exports; /* How many buffer exports */
Py_ssize_t ob_alloc; /* How many bytes allocated in ob_bytes */
char *ob_bytes; /* Physical backing buffer */
char *ob_start; /* Logical start inside ob_bytes */
Py_ssize_t ob_exports; /* How many buffer exports */
} PyByteArrayObject;
#endif

Expand Down
0