summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--concurrent_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/concurrent_set.c b/concurrent_set.c
index 876b4083e6..2aa65b7378 100644
--- a/concurrent_set.c
+++ b/concurrent_set.c
@@ -139,7 +139,7 @@ concurrent_set_try_resize_without_locking(VALUE old_set_obj, VALUE *set_obj_ptr)
if (entry->key == CONCURRENT_SET_EMPTY) {
new_set->size++;
- RUBY_ASSERT(new_set->size < new_set->capacity / 2);
+ RUBY_ASSERT(new_set->size <= new_set->capacity / 2);
RUBY_ASSERT(entry->hash == 0);
entry->key = key;