diff --git a/util.c b/util.c index d232d2c43..f611c5ef8 100644 --- a/util.c +++ b/util.c @@ -128,7 +128,7 @@ static int q_realloc( dyn_queue_t *q ) { void **old_start = q->start; void **old_stop = q->stop; - int diff; + ptrdiff_t diff; int new_size; new_size = 2*(q->stop-q->start);