Skip to content

Commit

Permalink
const iterator internally
Browse files Browse the repository at this point in the history
  • Loading branch information
agl-alexglopez committed Dec 11, 2024
1 parent 43442d2 commit c173452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flat_hash_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,12 @@ ccc_fhm_begin(ccc_flat_hash_map const *const h)
{
return NULL;
}
void *iter = ccc_buf_begin(&h->buf_);
void const *iter = ccc_buf_begin(&h->buf_);
for (; iter != ccc_buf_capacity_end(&h->buf_)
&& elem_in_slot(h, iter)->hash_ == CCC_FHM_EMPTY;
iter = ccc_buf_next(&h->buf_, iter))
{}
return iter == ccc_buf_capacity_end(&h->buf_) ? NULL : iter;
return (void *)(iter == ccc_buf_capacity_end(&h->buf_) ? NULL : iter);
}

void *
Expand Down

0 comments on commit c173452

Please sign in to comment.