diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-08 09:40:33 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-08 09:40:33 (GMT) |
commit | 91229781db6171df15c6ebec80c8b2e4f979278e (patch) | |
tree | 234bdc6bd079d4b11225982ead3dfdd7f7227246 /generic/tclDictObj.c | |
parent | dee7abd87b35462e5ce0b8a90d9e19c23033f55b (diff) | |
parent | ed208233801b034319f1e70229a69631cffd2105 (diff) | |
download | tcl-91229781db6171df15c6ebec80c8b2e4f979278e.zip tcl-91229781db6171df15c6ebec80c8b2e4f979278e.tar.gz tcl-91229781db6171df15c6ebec80c8b2e4f979278e.tar.bz2 |
merge trunk
Diffstat (limited to 'generic/tclDictObj.c')
-rw-r--r-- | generic/tclDictObj.c | 6 |
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) { |