Commit 20e8d040 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes integer overflow in show memory command.

Thanks to Job Snijders for the bugreport.
parent 8945f73d
......@@ -123,7 +123,7 @@ static size_t
slab_memsize(resource *r)
{
slab *s = (slab *) r;
int cnt = 0;
size_t cnt = 0;
struct sl_obj *o;
WALK_LIST(o, s->objs)
......@@ -346,7 +346,7 @@ static size_t
slab_memsize(resource *r)
{
slab *s = (slab *) r;
int heads = 0;
size_t heads = 0;
struct sl_head *h;
WALK_LIST(h, s->empty_heads)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment