diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-07-01 13:12:57 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-07-01 13:12:57 (GMT) |
commit | fec1116ba715f2d2d4ec6f0c5a8faa26d9156246 (patch) | |
tree | 9422a69eb8231a5b03115916dd4a3d8effb539a5 /generic/tclOOInt.h | |
parent | 73484694b551e1a1332066df5c5e11065e308c21 (diff) | |
download | tcl-fec1116ba715f2d2d4ec6f0c5a8faa26d9156246.zip tcl-fec1116ba715f2d2d4ec6f0c5a8faa26d9156246.tar.gz tcl-fec1116ba715f2d2d4ec6f0c5a8faa26d9156246.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.h | 2 |
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) |