summaryrefslogtreecommitdiffstats
path: root/generic/tclDictObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-08 09:40:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-08 09:40:33 (GMT)
commit91229781db6171df15c6ebec80c8b2e4f979278e (patch)
tree234bdc6bd079d4b11225982ead3dfdd7f7227246 /generic/tclDictObj.c
parentdee7abd87b35462e5ce0b8a90d9e19c23033f55b (diff)
parented208233801b034319f1e70229a69631cffd2105 (diff)
downloadtcl-91229781db6171df15c6ebec80c8b2e4f979278e.zip
tcl-91229781db6171df15c6ebec80c8b2e4f979278e.tar.gz
tcl-91229781db6171df15c6ebec80c8b2e4f979278e.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r--generic/tclDictObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclDictObj.c b/generic/tclDictObj.c
index 38de65d..e0e5a2a 100644
--- a/generic/tclDictObj.c
+++ b/generic/tclDictObj.c
@@ -141,7 +141,7 @@ typedef struct Dict {
* the dictionary. Used for doing traversal of
* the entries in the order that they are
* created. */
- unsigned int epoch; /* Epoch counter */
+ unsigned int epoch; /* Epoch counter */
size_t refCount; /* Reference counter (see above) */
Tcl_Obj *chain; /* Linked list used for invalidating the
* string representations of updated nested
@@ -1165,7 +1165,7 @@ Tcl_DictObjNext(
* If the searh is done; we do no work.
*/
- if (searchPtr->epoch == 0) {
+ if (!searchPtr->epoch) {
*donePtr = 1;
return;
}
@@ -1222,7 +1222,7 @@ Tcl_DictObjDone(
{
Dict *dict;
- if (searchPtr->epoch != 0) {
+ if (searchPtr->epoch) {
searchPtr->epoch = 0;
dict = (Dict *) searchPtr->dictionaryPtr;
if (dict->refCount-- <= 1) {