summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r--generic/tclUtf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c
index f2d2b3b..730a8b7 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -887,12 +887,12 @@ Tcl_UtfPrev(
} while (trailBytesSeen < 3);
/*
- * We've seen 3 (or 4) trail bytes, so we know there will not be a
+ * We've seen 3 trail bytes, so we know there will not be a
* properly formed byte sequence to find, and we can stop looking,
- * accepting the fallback (for TCL_UTF_MAX > 4) or just go back as
- * far as we can.
+ * accepting the fallback.
*/
- return src - 3;
+
+ return fallback;
}
/*