Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unnecessary condition in _dictExpandIfNeeded (dict.c)

  • Loading branch information...
commit dee0b939fcd6650edfd8705f0685cd8430750085 1 parent c87a408
@openbaas openbaas authored committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/dict.c
View
3  src/dict.c
@@ -621,8 +621,7 @@ static int _dictExpandIfNeeded(dict *d)
(dict_can_resize ||
d->ht[0].used/d->ht[0].size > dict_force_resize_ratio))
{
- return dictExpand(d, ((d->ht[0].size > d->ht[0].used) ?
- d->ht[0].size : d->ht[0].used)*2);
+ return dictExpand(d, d->ht[0].used*2);
}
return DICT_OK;
}
Please sign in to comment.
Something went wrong with that request. Please try again.