diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 9d86396f73b2b55..41e1287c8650701 100644 --- a/Modules/cjkcodecs/cjkcodecs.h +++ b/Modules/cjkcodecs/cjkcodecs.h @@ -155,8 +155,8 @@ get_module_state(PyObject *mod) #define OUTCHAR(c) \ do { \ - if (_PyUnicodeWriter_WriteChar(writer, (c)) < 0) \ - return MBERR_EXCEPTION; \ + if (_PyUnicodeWriter_WriteCharInline(writer, (c)) < 0) \ + return MBERR_EXCEPTION; \ } while (0) #define OUTCHAR2(c1, c2) \