Skip to content

Commit da31ee9

Browse files
committed
Fix count of dicts with parent
1 parent a371d4b commit da31ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Fleece/Core/Dict.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ namespace fleece { namespace impl {
309309
if (_usuallyFalse(isMutable()))
310310
return heapDict()->count();
311311
Array::impl imp(this);
312-
if (_usuallyFalse(imp._count > 1 && isMagicParentKey(imp._first))) {
312+
if (_usuallyFalse(imp._count >= 1 && isMagicParentKey(imp._first))) {
313313
// Dict has a parent; this makes counting much more expensive!
314314
uint32_t c = 0;
315315
for (iterator i(this); i; ++i)

0 commit comments

Comments
 (0)