diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-30 15:50:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-10-30 15:50:35 (GMT) |
commit | 5f8fa20d23ced1ed51787796956391f963658830 (patch) | |
tree | 0a2d04905a1c6437855758315ddcf9c665b0a71b /generic/tkBind.c | |
parent | b879a0a4bd2c3c99d48b7c75eaa69b194c10bf23 (diff) | |
download | tk-5f8fa20d23ced1ed51787796956391f963658830.zip tk-5f8fa20d23ced1ed51787796956391f963658830.tar.gz tk-5f8fa20d23ced1ed51787796956391f963658830.tar.bz2 |
Eliminate intermediate numObjects1/objc1 variables
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r-- | generic/tkBind.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index d0ec971..8e1fc3c 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -2177,7 +2177,7 @@ Tk_BindEvent( XEvent *eventPtr, /* What actually happened. */ Tk_Window tkwin, /* Window on display where event occurred (needed in order to * locate display information). */ - Tcl_Size numObjects1, /* Number of objects at *objArr. */ + Tcl_Size numObjects, /* Number of objects at *objArr. */ ClientData *objArr) /* Array of one or more objects to check for a matching binding. */ { Tcl_Interp *interp; @@ -2201,8 +2201,7 @@ Tk_BindEvent( unsigned flags; unsigned arraySize; unsigned newArraySize; - unsigned i, k; - int numObjects = numObjects1; + size_t i, k; assert(bindPtr); assert(eventPtr); @@ -2275,7 +2274,7 @@ Tk_BindEvent( bindInfoPtr->lastEventTime = eventPtr->xkey.time; } /* Modifier keys should not influence button events. */ - for (i = 0; i < (unsigned) dispPtr->numModKeyCodes; ++i) { + for (i = 0; i < (size_t) dispPtr->numModKeyCodes; ++i) { if (dispPtr->modKeyCodes[i] == eventPtr->xkey.keycode) { reset = 0; } @@ -2401,7 +2400,7 @@ Tk_BindEvent( memset(matchPtrArr, 0, numObjects*sizeof(matchPtrArr[0])); if (!PromArr_IsEmpty(bindPtr->promArr)) { - for (k = 0; k < (unsigned) numObjects; ++k) { + for (k = 0; k < (size_t) numObjects; ++k) { psl[1] = PromArr_Last(bindPtr->promArr); psl[0] = psl[1] - 1; |