diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-25 15:32:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-25 15:32:11 (GMT) |
commit | b686909c25b4ce6bac5b383885345d16a4a41ffd (patch) | |
tree | 76f3545ffd1a47aaf678965bc11467b680e9e29e /generic/tkCanvWind.c | |
parent | 4130f00f7b4fe4f5f25a463cf32a3fa08c1f4b1c (diff) | |
download | tk-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.c | 6 |
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; } |