summaryrefslogtreecommitdiffstats
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
parent4a1828d3e7f328cce5d6b770ffbb6ea5a5373d0c (diff)
downloadtk-1e9b0fc3c284b29e0adaf439f2438d0246eb7838.zip
tk-1e9b0fc3c284b29e0adaf439f2438d0246eb7838.tar.gz
tk-1e9b0fc3c284b29e0adaf439f2438d0246eb7838.tar.bz2
Change some internal refCount's from int to size_t.
-rw-r--r--generic/tkImgPhoto.h2
-rw-r--r--generic/tkInt.h4
-rw-r--r--tests/textDisp.test2
3 files changed, 4 insertions, 4 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
diff --git a/tests/textDisp.test b/tests/textDisp.test
index 9a71d96..f2eb47d 100644
--- a/tests/textDisp.test
+++ b/tests/textDisp.test
@@ -2878,7 +2878,7 @@ test textDisp-20.1 {FindDLine} {
list [.t dlineinfo 46.0] [.t dlineinfo 47.0] [.t dlineinfo 49.0] \
[.t dlineinfo 58.0]
} [list {} {} [list 3 [expr {$fixedDiff + 16}] 49 [expr {$fixedDiff + 13}] [expr {$fixedDiff + 10}]] {}]
-test textDisp-20.2 {FindDLine} {
+test textDisp-20.2 {FindDLine} {
.t yview 100.0
.t yview -pickplace 53.0
list [.t dlineinfo 50.0] [.t dlineinfo 50.14] [.t dlineinfo 50.21]