summaryrefslogtreecommitdiffstats
path: root/generic/tclOOInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-07-01 13:12:57 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-07-01 13:12:57 (GMT)
commit7ea47b984acc172d762d97583ad57afb44a7e450 (patch)
tree9422a69eb8231a5b03115916dd4a3d8effb539a5 /generic/tclOOInt.h
parent27ce2290a6e107aa7e2b8a5995fa32e32106546c (diff)
downloadtcl-7ea47b984acc172d762d97583ad57afb44a7e450.zip
tcl-7ea47b984acc172d762d97583ad57afb44a7e450.tar.gz
tcl-7ea47b984acc172d762d97583ad57afb44a7e450.tar.bz2
Don't use internalRep.otherValuePtr any more, twoPtrValue.ptr1 is always a better idea.
A few more consistancies in refcount management.
Diffstat (limited to 'generic/tclOOInt.h')
-rw-r--r--generic/tclOOInt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclOOInt.h b/generic/tclOOInt.h
index c0e4022..208e32c 100644
--- a/generic/tclOOInt.h
+++ b/generic/tclOOInt.h
@@ -588,7 +588,7 @@ MODULE_SCOPE void TclOOSetupVariableResolver(Tcl_Namespace *nsPtr);
#define AddRef(ptr) ((ptr)->refCount++)
#define DelRef(ptr) do { \
- if (--(ptr)->refCount < 1) { \
+ if ((ptr)->refCount-- <= 1) { \
ckfree((char *) (ptr)); \
} \
} while(0)