summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvUtil.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-25 15:08:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-05-25 15:08:53 (GMT)
commit8e4c7b8f2f43e49559dba9709768e1c737e6b3b1 (patch)
tree9e4d8b272990338f713721e12686c38f1fb34ee6 /generic/tkCanvUtil.c
parentb3af1ba9a9e88b812152b32edbb39e4ea9d73b06 (diff)
parentb24734f447464d9b41cb0aaaf478615872427a8e (diff)
downloadtk-8e4c7b8f2f43e49559dba9709768e1c737e6b3b1.zip
tk-8e4c7b8f2f43e49559dba9709768e1c737e6b3b1.tar.gz
tk-8e4c7b8f2f43e49559dba9709768e1c737e6b3b1.tar.bz2
Formatting and even more size_t usage.
Diffstat (limited to 'generic/tkCanvUtil.c')
-rw-r--r--generic/tkCanvUtil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkCanvUtil.c b/generic/tkCanvUtil.c
index eee1ad2..a1fe265 100644
--- a/generic/tkCanvUtil.c
+++ b/generic/tkCanvUtil.c
@@ -430,9 +430,9 @@ TkCanvasTagsParseProc(
* Make sure that there's enough space in the item to hold the tag names.
*/
- if (itemPtr->tagSpace < argc) {
+ if ((int)itemPtr->tagSpace < argc) {
newPtr = (Tk_Uid *)ckalloc(argc * sizeof(Tk_Uid));
- for (i = itemPtr->numTags-1; i >= 0; i--) {
+ for (i = (int)itemPtr->numTags - 1; i >= 0; i--) {
newPtr[i] = itemPtr->tagPtr[i];
}
if (itemPtr->tagPtr != itemPtr->staticTagSpace) {
@@ -558,7 +558,7 @@ TkCanvasDashPrintProc(
ClientData dummy, /* Ignored. */
Tk_Window tkwin, /* Window containing canvas widget. */
char *widgRec, /* Pointer to record for item. */
- TkSizeT offset, /* Offset in record for item. */
+ TkSizeT offset, /* Offset in record for item. */
Tcl_FreeProc **freeProcPtr) /* Pointer to variable to fill in with
* information about how to reclaim storage
* for return string. */
@@ -747,7 +747,7 @@ TkSmoothParseProc(
Tk_Window tkwin, /* Window containing canvas widget. */
const char *value, /* Value of option. */
char *widgRec, /* Pointer to record for item. */
- TkSizeT offset) /* Offset into item. */
+ TkSizeT offset) /* Offset into item. */
{
const Tk_SmoothMethod **smoothPtr =
(const Tk_SmoothMethod **) (widgRec + offset);