diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-03-23 08:30:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 08:30:05 (GMT) |
commit | bd1cf6ecee76bcdce87b4f69567b95756ecf5a4c (patch) | |
tree | 250124df65639f63a413564c3254b26b881d4371 /Objects/bytesobject.c | |
parent | 894d0ea5afa822c23286e9e68ed80bb1122b402d (diff) | |
download | cpython-bd1cf6ecee76bcdce87b4f69567b95756ecf5a4c.zip cpython-bd1cf6ecee76bcdce87b4f69567b95756ecf5a4c.tar.gz cpython-bd1cf6ecee76bcdce87b4f69567b95756ecf5a4c.tar.bz2 |
bpo-47012: speed up iteration of bytes and bytearray (GH-31867)
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r-- | Objects/bytesobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index fd1c58c..0039532 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -3133,7 +3133,7 @@ striter_next(striterobject *it) assert(PyBytes_Check(seq)); if (it->it_index < PyBytes_GET_SIZE(seq)) { - return PyLong_FromLong( + return _PyLong_FromUnsignedChar( (unsigned char)seq->ob_sval[it->it_index++]); } |