Commit 7e29eea9 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed typos in comments.

parent 5bf3120e
...@@ -660,7 +660,7 @@ STRINGLIB(utf16_encode)(const STRINGLIB_CHAR *in, ...@@ -660,7 +660,7 @@ STRINGLIB(utf16_encode)(const STRINGLIB_CHAR *in,
if (ch < 0xd800) if (ch < 0xd800)
*out++ = ch; *out++ = ch;
else if (ch < 0xe000) else if (ch < 0xe000)
/* reject surrogate characters (U+DC800-U+DFFF) */ /* reject surrogate characters (U+D800-U+DFFF) */
goto fail; goto fail;
#if STRINGLIB_MAX_CHAR >= 0x10000 #if STRINGLIB_MAX_CHAR >= 0x10000
else if (ch >= 0x10000) { else if (ch >= 0x10000) {
...@@ -695,7 +695,7 @@ STRINGLIB(utf16_encode)(const STRINGLIB_CHAR *in, ...@@ -695,7 +695,7 @@ STRINGLIB(utf16_encode)(const STRINGLIB_CHAR *in,
if (ch < 0xd800) if (ch < 0xd800)
*out++ = SWAB2((Py_UCS2)ch); *out++ = SWAB2((Py_UCS2)ch);
else if (ch < 0xe000) else if (ch < 0xe000)
/* reject surrogate characters (U+DC800-U+DFFF) */ /* reject surrogate characters (U+D800-U+DFFF) */
goto fail; goto fail;
#if STRINGLIB_MAX_CHAR >= 0x10000 #if STRINGLIB_MAX_CHAR >= 0x10000
else if (ch >= 0x10000) { else if (ch >= 0x10000) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment