mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +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_start = q->start;
|
||||||
void **old_stop = q->stop;
|
void **old_stop = q->stop;
|
||||||
int diff;
|
ptrdiff_t diff;
|
||||||
int new_size;
|
int new_size;
|
||||||
|
|
||||||
new_size = 2*(q->stop-q->start);
|
new_size = 2*(q->stop-q->start);
|
||||||
|
|
Loading…
Reference in a new issue