Skip to content

Commit

Permalink
Fix Ttk_CreateTagTable() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Mar 23, 2024
1 parent 90ab1c4 commit cac2d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions generic/ttk/ttkTagSet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion generic/ttk/ttkWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cac2d26

Please sign in to comment.