diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-23 15:46:20 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-23 15:46:20 (GMT) |
commit | 48d0827130389368a247f26b480bd819a1c753e5 (patch) | |
tree | a987df770d8a8bb73a5a2990b25858e84066e71a | |
parent | be83197ee590ec252235b5684a13f8d42e35c814 (diff) | |
parent | 1c788e178d149302a1d9d5265bc46120de4f5a6a (diff) | |
download | tcl-48d0827130389368a247f26b480bd819a1c753e5.zip tcl-48d0827130389368a247f26b480bd819a1c753e5.tar.gz tcl-48d0827130389368a247f26b480bd819a1c753e5.tar.bz2 |
Merge 8.6
-rw-r--r-- | generic/tclIO.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index a4bec5d..1547489 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. |