From 8b407a32ffd2d62bb7c5d92db54d4ca738514d15 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 26 Dec 2011 21:08:45 -0800 Subject: [PATCH] Fix to use proper type to compute difference between two pointers, which fixes a crash when fish is compiled LP64 --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);