diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-18 12:47:38 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-18 12:47:38 (GMT) |
commit | 63d55485eb9be2e21c911bdc78e0367d8d7ecb2c (patch) | |
tree | 80450d56ce49849889e9233fac6643a3589623a0 /unix | |
parent | c6eb4388bed08a7f24b9de6cd12d1500cab024ca (diff) | |
download | tk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.zip tk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.tar.gz tk-63d55485eb9be2e21c911bdc78e0367d8d7ecb2c.tar.bz2 |
Missed more than a few TIP 660 changes. Possibly more to come.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixSelect.c | 4 | ||||
-rw-r--r-- | unix/tkUnixSend.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c index 89a4920..9b0437f 100644 --- a/unix/tkUnixSelect.c +++ b/unix/tkUnixSelect.c @@ -479,8 +479,8 @@ TkSelPropProc( * offset to -1 to indicate we are done. */ - if (numItems + 1 < TK_SEL_BYTES_AT_ONCE + 1) { - if (numItems + 1 < 2) { + if (numItems < TK_SEL_BYTES_AT_ONCE) { + if (numItems < 1) { incrPtr->converts[i].offset = -1; incrPtr->numIncrs--; } else { diff --git a/unix/tkUnixSend.c b/unix/tkUnixSend.c index f5e83af..4be6cdb 100644 --- a/unix/tkUnixSend.c +++ b/unix/tkUnixSend.c @@ -1970,7 +1970,7 @@ TkpTestsendCmd( Tk_ErrorHandler handler; int index; - if (objc + 1 < 3) { + if (objc < 2) { Tcl_WrongNumArgs(interp, 1, objv, "option ?arg ...?"); return TCL_ERROR; |