diff options
-rw-r--r-- | generic/tkCanvLine.c | 4 | ||||
-rw-r--r-- | 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; } |