diff options
author | Hai Shi <shihai1992@gmail.com> | 2019-10-21 06:31:46 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-21 06:31:46 (GMT) |
commit | 06cd5b6acd98205adae1a3ea4223e88f38ad55ab (patch) | |
tree | d4885a7094f79264d7a714c3b5f8d4cad813d16f /Include/bytearrayobject.h | |
parent | 74142078b3b78fea7b4cd791e5c577c0c0964eb7 (diff) | |
download | cpython-06cd5b6acd98205adae1a3ea4223e88f38ad55ab.zip cpython-06cd5b6acd98205adae1a3ea4223e88f38ad55ab.tar.gz cpython-06cd5b6acd98205adae1a3ea4223e88f38ad55ab.tar.bz2 |
bpo-38465: Convert the type of exports counters to Py_ssize_t. (GH-16746)
Diffstat (limited to 'Include/bytearrayobject.h')
-rw-r--r-- | Include/bytearrayobject.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Include/bytearrayobject.h b/Include/bytearrayobject.h index a757b88..647a17a 100644 --- a/Include/bytearrayobject.h +++ b/Include/bytearrayobject.h @@ -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 |