summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-23 21:51:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-23 21:51:36 (GMT)
commitcac2d268f949e142eee3110fe0fe546c562cd52a (patch)
tree8f8cd8566d787ff3c4daff15c84abebd6b0b4bee /generic
parent90ab1c4c1f9fc8102d10a15c4abc19aa24fb843d (diff)
downloadtk-cac2d268f949e142eee3110fe0fe546c562cd52a.zip
tk-cac2d268f949e142eee3110fe0fe546c562cd52a.tar.gz
tk-cac2d268f949e142eee3110fe0fe546c562cd52a.tar.bz2
Fix Ttk_CreateTagTable() signature
Diffstat (limited to 'generic')
-rw-r--r--generic/ttk/ttkTagSet.c4
-rw-r--r--generic/ttk/ttkWidget.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/ttk/ttkTagSet.c b/generic/ttk/ttkTagSet.c
index 1cc22c5..5645325 100644
--- a/generic/ttk/ttkTagSet.c
+++ b/generic/ttk/ttkTagSet.c
@@ -21,7 +21,7 @@ struct TtkTagTable {
Tk_Window tkwin; /* owner window */
const Tk_OptionSpec *optionSpecs; /* ... */
Tk_OptionTable optionTable; /* ... */
- Tcl_Size recordSize; /* size of tag record */
+ size_t recordSize; /* size of tag record */
Tcl_Size nTags; /* #tags defined so far */
Tcl_HashTable tags; /* defined tags */
};
@@ -53,7 +53,7 @@ static void DeleteTag(Ttk_TagTable tagTable, Ttk_Tag tag)
Ttk_TagTable Ttk_CreateTagTable(
Tcl_Interp *interp, Tk_Window tkwin,
- const Tk_OptionSpec *optionSpecs, int recordSize)
+ const Tk_OptionSpec *optionSpecs, size_t recordSize)
{
Ttk_TagTable tagTable = (Ttk_TagTable)ckalloc(sizeof(*tagTable));
tagTable->tkwin = tkwin;
diff --git a/generic/ttk/ttkWidget.h b/generic/ttk/ttkWidget.h
index d9664b1..e11e013 100644
--- a/generic/ttk/ttkWidget.h
+++ b/generic/ttk/ttkWidget.h
@@ -214,7 +214,7 @@ typedef struct TtkTagSet { /* TODO: make opaque */
} *Ttk_TagSet;
MODULE_SCOPE Ttk_TagTable Ttk_CreateTagTable(
- Tcl_Interp *, Tk_Window tkwin, const Tk_OptionSpec *, int recordSize);
+ Tcl_Interp *, Tk_Window tkwin, const Tk_OptionSpec *, size_t recordSize);
MODULE_SCOPE void Ttk_DeleteTagTable(Ttk_TagTable);
MODULE_SCOPE Ttk_Tag Ttk_GetTag(Ttk_TagTable, const char *tagName);