summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-23 15:48:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-23 15:48:14 (GMT)
commit3a13b3b940216a3791902631b76202e243d7a52e (patch)
tree2fb29c227977197ef4aa308b545bf88963c0fcc1 /generic/tclIO.c
parentef66b6c75b59edb19fd09b920b6f67baa0c27c20 (diff)
parent48d0827130389368a247f26b480bd819a1c753e5 (diff)
downloadtcl-3a13b3b940216a3791902631b76202e243d7a52e.zip
tcl-3a13b3b940216a3791902631b76202e243d7a52e.tar.gz
tcl-3a13b3b940216a3791902631b76202e243d7a52e.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index d84d0c7..5c7c5a6 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.