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)
commita3271d4360790d34a08896e46f0a6a37aa344568 (patch)
tree1745e8e5096f20504655ab8f994412fe58f8eb56 /generic/tclBasic.c
parent0f3bab8aece13cfd66cca4d2e16489faaf69457b (diff)
downloadtcl-a3271d4360790d34a08896e46f0a6a37aa344568.zip
tcl-a3271d4360790d34a08896e46f0a6a37aa344568.tar.gz
tcl-a3271d4360790d34a08896e46f0a6a37aa344568.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;
}