Skip to content

Commit

Permalink
memory/mempool: fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Jun 15, 2024
1 parent 0fe4655 commit 3dc8624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memory/mempool.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ void mempool_generic_release(MemPool *pool, void *object) {
pool->free_objects.as_generic = obj;

--pool->num_used;
assert(pool->num_used >= 0);
assert(pool->num_used + 1 > pool->num_used);
assert(pool->num_used <= pool->num_allocated);
}

0 comments on commit 3dc8624

Please sign in to comment.