Fix to use proper type to compute difference between two pointers, which fixes a crash when fish is compiled LP64

This commit is contained in:
ridiculousfish 2011-12-26 21:08:45 -08:00
parent 834ea94eb9
commit 8b407a32ff

2
util.c
View file

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