diff options
author | fvogel <fvogelnew1@free.fr> | 2019-12-24 13:31:56 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-12-24 13:31:56 (GMT) |
commit | 6229b57ab2249ecd2859c4df8774373544bb771e (patch) | |
tree | 2697fbe5b336ff0976a6c143a4190e1a8ce32367 /generic/tkCanvas.c | |
parent | ef83d456ae8d36339b13f6b426f9410fb3e750aa (diff) | |
download | tk-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.c | 4 |
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--; /* |