memory/mempool: fix warning

This commit is contained in:
Andrei Alexeyev 2024-06-15 09:30:01 +02:00
parent 0fe465522f
commit 3dc8624265
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -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);
}