summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-21 10:15:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-21 10:15:24 (GMT)
commit990d6fd6f1821960103d83cda547ef9a8c2199b8 (patch)
tree1745e8e5096f20504655ab8f994412fe58f8eb56 /generic/tclBasic.c
parentda608f8c614749af16e02de19741cada608d3215 (diff)
downloadtcl-990d6fd6f1821960103d83cda547ef9a8c2199b8.zip
tcl-990d6fd6f1821960103d83cda547ef9a8c2199b8.tar.gz
tcl-990d6fd6f1821960103d83cda547ef9a8c2199b8.tar.bz2
More internal use of size_t in stead of int.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 39f2dd4..8eebab1 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -3400,8 +3400,7 @@ TclCleanupCommand(
register Command *cmdPtr) /* Points to the Command structure to
* be freed. */
{
- cmdPtr->refCount--;
- if (cmdPtr->refCount <= 0) {
+ if (cmdPtr->refCount-- <= 1) {
ckfree(cmdPtr);
}
}
@@ -5578,8 +5577,7 @@ TclArgumentRelease(
}
cfwPtr = Tcl_GetHashValue(hPtr);
- cfwPtr->refCount--;
- if (cfwPtr->refCount > 0) {
+ if (cfwPtr->refCount-- > 1) {
continue;
}