Skip to content

Commit 452b5b4

Browse files
committed
gh-156537: Inline CJK replacement writer call
1 parent 03503dc commit 452b5b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/cjkcodecs/multibytecodec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ multibytecodec_decerror(const MultibyteCodec *codec,
429429
}
430430

431431
if (errors == ERROR_REPLACE) {
432-
if (_PyUnicodeWriter_WriteChar(&buf->writer,
433-
Py_UNICODE_REPLACEMENT_CHARACTER) < 0)
432+
if (_PyUnicodeWriter_WriteCharInline(
433+
&buf->writer, Py_UNICODE_REPLACEMENT_CHARACTER) < 0)
434434
goto errorexit;
435435
}
436436
if (errors == ERROR_IGNORE || errors == ERROR_REPLACE) {

0 commit comments

Comments
 (0)