summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-14 10:27:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-14 10:27:26 (GMT)
commit549548bacfac01474e18ad35a8330184146a0811 (patch)
tree2acf9dd976d0128226a13e2f321233725e831902 /generic/tclProc.c
parent7d5a69fb31f8327c06f9d8bd69836dd2ff78b330 (diff)
parent4f9fc86e5d0f464283c34d96b2bcec28ac0458c8 (diff)
downloadtcl-549548bacfac01474e18ad35a8330184146a0811.zip
tcl-549548bacfac01474e18ad35a8330184146a0811.tar.gz
tcl-549548bacfac01474e18ad35a8330184146a0811.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 60b7662..6f51da8 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -545,7 +545,7 @@ TclCreateProc(
*/
argnamei = argname;
- argnamelast = Tcl_UtfPrev(argname + nameLength, argname);
+ argnamelast = (nameLength > 0) ? (argname + nameLength - 1) : argname;
while (argnamei < argnamelast) {
if (*argnamei == '(') {
if (*argnamelast == ')') { /* We have an array element. */
@@ -566,7 +566,7 @@ TclCreateProc(
"FORMALARGUMENTFORMAT", NULL);
goto procError;
}
- argnamei = Tcl_UtfNext(argnamei);
+ argnamei++;
}
if (precompiled) {