summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-02-15 13:56:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-02-15 13:56:17 (GMT)
commit1e9b0fc3c284b29e0adaf439f2438d0246eb7838 (patch)
tree364e07879f27b2eee6678695592070d950172d93 /generic
parent4a1828d3e7f328cce5d6b770ffbb6ea5a5373d0c (diff)
downloadtk-1e9b0fc3c284b29e0adaf439f2438d0246eb7838.zip
tk-1e9b0fc3c284b29e0adaf439f2438d0246eb7838.tar.gz
tk-1e9b0fc3c284b29e0adaf439f2438d0246eb7838.tar.bz2
Change some internal refCount's from int to size_t.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkImgPhoto.h2
-rw-r--r--generic/tkInt.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkImgPhoto.h b/generic/tkImgPhoto.h
index 36bc6cb..45fac88 100644
--- a/generic/tkImgPhoto.h
+++ b/generic/tkImgPhoto.h
@@ -201,7 +201,7 @@ struct PhotoInstance {
* this particular colormap. */
PhotoInstance *nextPtr; /* Pointer to the next instance in the list of
* instances associated with this master. */
- int refCount; /* Number of instances using this structure. */
+ size_t refCount; /* Number of instances using this structure. */
Tk_Uid palette; /* Palette for these particular instances. */
double gamma; /* Gamma value for these instances. */
Tk_Uid defaultPalette; /* Default palette to use if a palette is not
diff --git a/generic/tkInt.h b/generic/tkInt.h
index f00d833..3138ffc 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -478,7 +478,7 @@ typedef struct TkDisplay {
#endif /* TK_USE_INPUT_METHODS */
Tcl_HashTable winTable; /* Maps from X window ids to TkWindow ptrs. */
- int refCount; /* Reference count of how many Tk applications
+ size_t refCount; /* Reference count of how many Tk applications
* are using this display. Used to clean up
* the display when we no longer have any Tk
* applications using it. */
@@ -582,7 +582,7 @@ typedef struct TkEventHandler {
*/
typedef struct TkMainInfo {
- int refCount; /* Number of windows whose "mainPtr" fields
+ size_t refCount; /* Number of windows whose "mainPtr" fields
* point here. When this becomes zero, can
* free up the structure (the reference count
* is zero because windows can get deleted in