diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-04-30 12:51:38 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-04-30 12:51:38 (GMT) |
commit | 4c7e61bdbca84ca47a3400996676243ae26237f6 (patch) | |
tree | 8efb0fa704425f6b0146b319e086c75ce6223a14 /generic/tclUtf.c | |
parent | f2fc957a67c00e6fa7e4fcc54320a20b012ef94a (diff) | |
download | tcl-4c7e61bdbca84ca47a3400996676243ae26237f6.zip tcl-4c7e61bdbca84ca47a3400996676243ae26237f6.tar.gz tcl-4c7e61bdbca84ca47a3400996676243ae26237f6.tar.bz2 |
Let's not get out the src[3] check yet.
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r-- | generic/tclUtf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c index 802610c..e1cde17 100644 --- a/generic/tclUtf.c +++ b/generic/tclUtf.c @@ -601,7 +601,7 @@ Tcl_UtfToChar16( */ Tcl_UniChar high = (((byte & 0x07) << 8) | ((src[1] & 0x3F) << 2) | ((src[2] & 0x3F) >> 4)) - 0x40; - if ((high < 0x400) /*&& ((src[3] & 0xC0) == 0x80)*/) { + if ((high < 0x400) && ((src[3] & 0xC0) == 0x80)) { /* produce high surrogate, advance source pointer */ *chPtr = 0xD800 + high; return 1; |