mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
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:
parent
834ea94eb9
commit
8b407a32ff
1 changed files with 1 additions and 1 deletions
2
util.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue