diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-16 09:11:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-16 09:11:54 (GMT) |
commit | 3d880050e0bc6ac3a1d78aac55101e8345524387 (patch) | |
tree | 5276bd593c3580934e1d5d617de496d08ac42d13 /generic/tclUtil.c | |
parent | f1e0d62ed800467b43b65d9736e71bb1ab8f4f54 (diff) | |
parent | 763f1d20131b1d1269b6e95297ef83cd6983b602 (diff) | |
download | tcl-3d880050e0bc6ac3a1d78aac55101e8345524387.zip tcl-3d880050e0bc6ac3a1d78aac55101e8345524387.tar.gz tcl-3d880050e0bc6ac3a1d78aac55101e8345524387.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index 1decb05..d5ec040 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -1718,14 +1718,14 @@ TclTrimRight( */ do { - int qInc = TclUtfToUCS4(q, &ch2); + pInc = TclUtfToUCS4(q, &ch2); if (ch1 == ch2) { break; } - q += qInc; - bytesLeft -= qInc; + q += pInc; + bytesLeft -= pInc; } while (bytesLeft); if (bytesLeft == 0) { @@ -1771,7 +1771,7 @@ TclTrimLeft( * rely on (trim[numTrim] == '\0'). */ { const char *p = bytes; - int ch1, ch2; + int ch1, ch2; /* Empty strings -> nothing to do */ if ((numBytes == 0) || (numTrim == 0)) { |