summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvWind.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-25 15:32:11 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-25 15:32:11 (GMT)
commitb686909c25b4ce6bac5b383885345d16a4a41ffd (patch)
tree76f3545ffd1a47aaf678965bc11467b680e9e29e /generic/tkCanvWind.c
parent4130f00f7b4fe4f5f25a463cf32a3fa08c1f4b1c (diff)
downloadtk-b686909c25b4ce6bac5b383885345d16a4a41ffd.zip
tk-b686909c25b4ce6bac5b383885345d16a4a41ffd.tar.gz
tk-b686909c25b4ce6bac5b383885345d16a4a41ffd.tar.bz2
Eliminate many (Tcl_Size) typecasts, which are no longer necessary
Diffstat (limited to 'generic/tkCanvWind.c')
-rw-r--r--generic/tkCanvWind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkCanvWind.c b/generic/tkCanvWind.c
index d633222..e54032f 100644
--- a/generic/tkCanvWind.c
+++ b/generic/tkCanvWind.c
@@ -176,7 +176,7 @@ CreateWinItem(
Tcl_Obj *const objv[]) /* Arguments describing window. */
{
WindowItem *winItemPtr = (WindowItem *) itemPtr;
- int i;
+ Tcl_Size i;
if (objc == 0) {
Tcl_Panic("canvas did not pass any coords");
@@ -207,10 +207,10 @@ CreateWinItem(
i = 1;
}
}
- if (WinItemCoords(interp, canvas, itemPtr, (Tcl_Size)i, objv) != TCL_OK) {
+ if (WinItemCoords(interp, canvas, itemPtr, i, objv) != TCL_OK) {
goto error;
}
- if (ConfigureWinItem(interp, canvas, itemPtr, objc-(Tcl_Size)i, objv+i, 0)
+ if (ConfigureWinItem(interp, canvas, itemPtr, objc - i, objv + i, 0)
== TCL_OK) {
return TCL_OK;
}