summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvas.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-12-24 13:31:56 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-12-24 13:31:56 (GMT)
commit6229b57ab2249ecd2859c4df8774373544bb771e (patch)
tree2697fbe5b336ff0976a6c143a4190e1a8ce32367 /generic/tkCanvas.c
parentef83d456ae8d36339b13f6b426f9410fb3e750aa (diff)
downloadtk-6229b57ab2249ecd2859c4df8774373544bb771e.zip
tk-6229b57ab2249ecd2859c4df8774373544bb771e.tar.gz
tk-6229b57ab2249ecd2859c4df8774373544bb771e.tar.bz2
Fix error (with no consequence) in sizeof() request, and remove useless cast to (void *)
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r--generic/tkCanvas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c
index 5e89c6d..23dd716 100644
--- a/generic/tkCanvas.c
+++ b/generic/tkCanvas.c
@@ -1457,8 +1457,8 @@ CanvasWidgetCmd(
*/
memmove((void *)(itemPtr->tagPtr + i),
- (void *)(itemPtr->tagPtr + i + 1),
- sizeof(Tk_Uid *) * (itemPtr->numTags - (i+1)));
+ itemPtr->tagPtr + i + 1,
+ (itemPtr->numTags - (i+1)) * sizeof(Tk_Uid));
itemPtr->numTags--;
/*