summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-30 12:51:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-04-30 12:51:38 (GMT)
commit4c7e61bdbca84ca47a3400996676243ae26237f6 (patch)
tree8efb0fa704425f6b0146b319e086c75ce6223a14 /generic/tclUtf.c
parentf2fc957a67c00e6fa7e4fcc54320a20b012ef94a (diff)
downloadtcl-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.c2
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;