From cac2d268f949e142eee3110fe0fe546c562cd52a Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Sat, 23 Mar 2024 21:51:36 +0000 Subject: [PATCH] Fix Ttk_CreateTagTable() signature --- generic/ttk/ttkTagSet.c | 4 ++-- generic/ttk/ttkWidget.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/ttk/ttkTagSet.c b/generic/ttk/ttkTagSet.c index 1cc22c5a9..5645325d0 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 d9664b150..e11e0131a 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);