Skip to content

Commit

Permalink
fix size_t win 32-bit warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jan 8, 2025
1 parent d75e94f commit 440a206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mem/mem_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ struct mem_pool_entry *mem_pool_borrow(struct mem_pool *pool)
if (!pool)
return NULL;

for (size_t i = re_atomic_acq(&pool->next_free); i < pool->nmemb;
i++) {
for (size_t i = (size_t)re_atomic_acq(&pool->next_free);
i < pool->nmemb; i++) {
if (!re_atomic_acq(&pool->objs[i].used)) {
re_atomic_rls_set(&pool->objs[i].used, true);
re_atomic_rls_set(&pool->next_free, i + 1);
Expand Down

0 comments on commit 440a206

Please sign in to comment.