summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-31 16:47:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-31 16:47:59 (GMT)
commita5cb5cdaf088782fcccf2534e950c39a12c16f02 (patch)
tree1150c89c500e471f108636c849bad4204f3ca29c /generic/tkWindow.c
parent3d68ec991c54fcf2472aaf3b09fae7b6aa224254 (diff)
downloadtk-a5cb5cdaf088782fcccf2534e950c39a12c16f02.zip
tk-a5cb5cdaf088782fcccf2534e950c39a12c16f02.tar.gz
tk-a5cb5cdaf088782fcccf2534e950c39a12c16f02.tar.bz2
Change winPtr->optionLevel and winPtr->numTags from int to size_t, when compiled with Tcl 9 headers.
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r--generic/tkWindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index bc2921a..884bbb4 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -658,7 +658,7 @@ TkAllocWindow(
winPtr->inputContext = NULL;
winPtr->tagPtr = NULL;
winPtr->numTags = 0;
- winPtr->optionLevel = -1;
+ winPtr->optionLevel = TCL_INDEX_NONE;
winPtr->selHandlerList = NULL;
winPtr->geomMgrPtr = NULL;
winPtr->geomData = NULL;