Skip to content

Commit 4f7e933

Browse files
committed
Replace _Py_MAX_UNICODE with MAX_UNICODE
1 parent e40dd22 commit 4f7e933

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ xmlcharrefreplace(_PyBytesWriter *writer, char *str,
963963
for (i = collstart; i < collend; ++i) {
964964
// Use snprintf() with a temporary buffer to not write the trailing
965965
// NUL byte in the writer buffer.
966-
Py_BUILD_ASSERT(_Py_MAX_UNICODE <= 0x10ffff);
966+
Py_BUILD_ASSERT(MAX_UNICODE <= 0x10ffff);
967967
// len('&#1114111;\0') is 11 bytes.
968968
char buffer[11];
969969
Py_UCS4 ch = PyUnicode_READ(kind, data, i);

0 commit comments

Comments
 (0)