diff options
author | Steve Dower <steve.dower@python.org> | 2024-02-12 20:13:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 20:13:13 (GMT) |
commit | 7861dfd26a41e40c2b4361eb0bb1356b9b4a064b (patch) | |
tree | efedf1257dbc2e4b6be5aaab340194d644d57a0b /Modules/_io | |
parent | a82fbc13d0e352b9af7d7ffbef4bc04cf635f07f (diff) | |
download | cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.zip cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.tar.gz cpython-7861dfd26a41e40c2b4361eb0bb1356b9b4a064b.tar.bz2 |
gh-111140: Adds PyLong_AsNativeBytes and PyLong_FromNative[Unsigned]Bytes functions (GH-114886)
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/textio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index d794af8..a3239ec 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -2393,7 +2393,7 @@ textiowrapper_parse_cookie(cookie_type *cookie, PyObject *cookieObj) return -1; if (_PyLong_AsByteArray(cookieLong, buffer, sizeof(buffer), - PY_LITTLE_ENDIAN, 0) < 0) { + PY_LITTLE_ENDIAN, 0, 1) < 0) { Py_DECREF(cookieLong); return -1; } |