summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-26 14:38:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-26 14:38:05 (GMT)
commit2ae1425228575d9d4078191a7c8ead960570fe51 (patch)
treeb5806171dc0bbab197ea0a0bea9dde4944fd81ee /generic
parentd6340955cf7c0ca5d2e9341dd2c95e14a526b0eb (diff)
parent1c788e178d149302a1d9d5265bc46120de4f5a6a (diff)
downloadtcl-2ae1425228575d9d4078191a7c8ead960570fe51.zip
tcl-2ae1425228575d9d4078191a7c8ead960570fe51.tar.gz
tcl-2ae1425228575d9d4078191a7c8ead960570fe51.tar.bz2
Merge 8.6. Update "changes", but left out numerous utf-8 testsuite changes and TZ update (since 2020d will come soon)
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIO.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 82eb581..349e717 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -287,9 +287,9 @@ static int WillRead(Channel *chanPtr);
#define IsBufferOverflowing(bufPtr) ((bufPtr)->nextAdded>(bufPtr)->bufLength)
-#define InsertPoint(bufPtr) ((bufPtr)->buf + (bufPtr)->nextAdded)
+#define InsertPoint(bufPtr) (&(bufPtr)->buf[(bufPtr)->nextAdded])
-#define RemovePoint(bufPtr) ((bufPtr)->buf + (bufPtr)->nextRemoved)
+#define RemovePoint(bufPtr) (&(bufPtr)->buf[(bufPtr)->nextRemoved])
/*
* For working with channel state flag bits.