summaryrefslogtreecommitdiffstats
path: root/generic/tkMain.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-14 11:16:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-14 11:16:52 (GMT)
commitea5beb5b384263ed1b94344281de3232efef0dd0 (patch)
treefa76e282012fa2a3b10877a7484aef3eca07a6dc /generic/tkMain.c
parent626d7152122d3acfc5eafe232d0b81a4cbda5141 (diff)
parentad861a0433fe3325ce081e6df2b40ed7fd670fe9 (diff)
downloadtk-ea5beb5b384263ed1b94344281de3232efef0dd0.zip
tk-ea5beb5b384263ed1b94344281de3232efef0dd0.tar.gz
tk-ea5beb5b384263ed1b94344281de3232efef0dd0.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tkMain.c')
-rw-r--r--generic/tkMain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c
index b2fa845..eae10cf 100644
--- a/generic/tkMain.c
+++ b/generic/tkMain.c
@@ -407,15 +407,15 @@ StdinProc(
{
char *cmd;
int code;
- size_t count;
+ TkSizeT count;
InteractiveState *isPtr = (InteractiveState *)clientData;
Tcl_Channel chan = isPtr->input;
Tcl_Interp *interp = isPtr->interp;
(void)mask;
- count = (size_t)Tcl_Gets(chan, &isPtr->line);
+ count = Tcl_Gets(chan, &isPtr->line);
- if (count == (size_t)-1 && !isPtr->gotPartial) {
+ if ((count == TCL_IO_FAILURE) && !isPtr->gotPartial) {
if (isPtr->tty) {
Tcl_Exit(0);
} else {