From e6d29da8734bc5334fce0f0fac80776e3e339fb0 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sun, 10 Oct 2021 19:42:46 +0000 Subject: Remove superfluous casts. --- generic/tkCanvLine.c | 4 ++-- generic/tkCanvPoly.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c index b79e91d..cb80893 100644 --- a/generic/tkCanvLine.c +++ b/generic/tkCanvLine.c @@ -972,7 +972,7 @@ LineInsert( } oriNumPoints = linePtr->numPoints; length = 2*linePtr->numPoints; - nbInsPoints = (int) objc / 2; + nbInsPoints = objc / 2; if (beforeThis < 0) { beforeThis = 0; } @@ -1250,7 +1250,7 @@ LineDeleteCoords( } first1 = first; last1 = last; - nbDelPoints = (int) ((last - first) / 2) + 1; + nbDelPoints = (last - first) / 2 + 1; /* * Include one point at left of the left delete position, and one diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c index e447143..b105630 100644 --- a/generic/tkCanvPoly.c +++ b/generic/tkCanvPoly.c @@ -1034,7 +1034,7 @@ PolygonInsert( } oriNumPoints = polyPtr->numPoints - polyPtr->autoClosed; length = 2*(polyPtr->numPoints - polyPtr->autoClosed); - nbInsPoints = (int)objc / 2; + nbInsPoints = objc / 2; while (beforeThis > length) { beforeThis -= length; } -- cgit v0.12