summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-20 20:09:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-20 20:09:29 (GMT)
commit87fd8fa6b165adecf10d35ac7b05922221ae1858 (patch)
tree7c4f63c41795347c14b781d88cec86b1ff8d310b /generic/tclCompExpr.c
parent52c8d4007d2a4480394e37792b4be00adeab7848 (diff)
parenta4c0c19f5c629e0a940a030f52fcce0c6effee61 (diff)
downloadtcl-87fd8fa6b165adecf10d35ac7b05922221ae1858.zip
tcl-87fd8fa6b165adecf10d35ac7b05922221ae1858.tar.gz
tcl-87fd8fa6b165adecf10d35ac7b05922221ae1858.tar.bz2
Fix [6811a00819]: lsearch performance degradation on Tcl 8.6.11 release (thanks, Sergey!)
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 187c25c..7761ddd 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -2146,13 +2146,13 @@ ParseLexeme(
if (!TclIsBareword(*start) || *start == '_') {
if (Tcl_UtfCharComplete(start, numBytes)) {
- scanned = Tcl_UtfToUniChar(start, &ch);
+ scanned = TclUtfToUniChar(start, &ch);
} else {
char utfBytes[8];
memcpy(utfBytes, start, numBytes);
utfBytes[numBytes] = '\0';
- scanned = Tcl_UtfToUniChar(utfBytes, &ch);
+ scanned = TclUtfToUniChar(utfBytes, &ch);
}
*lexemePtr = INVALID;
Tcl_DecrRefCount(literal);