summaryrefslogtreecommitdiffstats
path: root/generic/tcl.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-12-13 16:16:40 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-12-13 16:16:40 (GMT)
commitf0de1fd27c3a2f0e88e89b4ce85ec9a0c72508f6 (patch)
tree55d29ef6fd0316b0b528e74f219dc2020548fdda /generic/tcl.h
parent7cf0ac1eafc58e6473a6f2d2e2c0480628ac626c (diff)
parent990ca78bafc3a3a4363dbdaca20c2c3f78b8ee83 (diff)
downloadtcl-f0de1fd27c3a2f0e88e89b4ce85ec9a0c72508f6.zip
tcl-f0de1fd27c3a2f0e88e89b4ce85ec9a0c72508f6.tar.gz
tcl-f0de1fd27c3a2f0e88e89b4ce85ec9a0c72508f6.tar.bz2
Restore clarity to macro test.
Diffstat (limited to 'generic/tcl.h')
-rw-r--r--generic/tcl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 7a21590..145124c 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -2314,7 +2314,7 @@ EXTERN void Tcl_GetMemoryInfo _ANSI_ARGS_((Tcl_DString *dsPtr));
# define Tcl_DecrRefCount(objPtr) \
do { \
Tcl_Obj *_objPtr = (objPtr); \
- if (_objPtr->refCount-- < 2) { \
+ if (--(_objPtr)->refCount <= 0) { \
TclFreeObj(_objPtr); \
} \
} while(0)