summaryrefslogtreecommitdiffstats
path: root/Modules/cjkcodecs
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2024-02-12 20:13:13 (GMT)
committerGitHub <noreply@github.com>2024-02-12 20:13:13 (GMT)
commit7861dfd26a41e40c2b4361eb0bb1356b9b4a064b (patch)
treeefedf1257dbc2e4b6be5aaab340194d644d57a0b /Modules/cjkcodecs
parenta82fbc13d0e352b9af7d7ffbef4bc04cf635f07f (diff)
downloadcpython-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/cjkcodecs')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c
index 5d3c16a..2125da4 100644
--- a/Modules/cjkcodecs/multibytecodec.c
+++ b/Modules/cjkcodecs/multibytecodec.c
@@ -973,7 +973,8 @@ _multibytecodec_MultibyteIncrementalEncoder_setstate_impl(MultibyteIncrementalEn
if (_PyLong_AsByteArray(statelong, statebytes, sizeof(statebytes),
1 /* little-endian */ ,
- 0 /* unsigned */ ) < 0) {
+ 0 /* unsigned */ ,
+ 1 /* with_exceptions */) < 0) {
goto errorexit;
}
@@ -1255,7 +1256,8 @@ _multibytecodec_MultibyteIncrementalDecoder_setstate_impl(MultibyteIncrementalDe
if (_PyLong_AsByteArray(statelong, statebytes, sizeof(statebytes),
1 /* little-endian */ ,
- 0 /* unsigned */ ) < 0) {
+ 0 /* unsigned */ ,
+ 1 /* with_exceptions */) < 0) {
return NULL;
}