summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
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 9ffbfba..160e444 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -2360,7 +2360,7 @@ TclUtfToUCS4(
len = TclUtfToUniChar(src, &ch);
fullchar = ch;
-#if TCL_UTF_MAX == 4
+#if TCL_UTF_MAX <= 4
/* 4-byte UTF-8 is supported; decode surrogates */
if ((ch >= 0xD800) && len < 3) {