mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #4557 from mikewadsten/bugfix/issue-4537-cscope-segfault
cscope: Fix mismatched types in ':cscope show' output
This commit is contained in:
commit
c56aceff88
@ -2081,12 +2081,13 @@ static int cs_show(exarg_T *eap)
|
|||||||
if (csinfo[i].fname == NULL)
|
if (csinfo[i].fname == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (csinfo[i].ppath != NULL)
|
if (csinfo[i].ppath != NULL) {
|
||||||
(void)smsg("%2zu %-5" PRId64 " %-34s %-32s",
|
(void)smsg("%2zu %-5" PRId64 " %-34s %-32s", i,
|
||||||
i, (long)csinfo[i].pid, csinfo[i].fname, csinfo[i].ppath);
|
(int64_t)csinfo[i].pid, csinfo[i].fname, csinfo[i].ppath);
|
||||||
else
|
} else {
|
||||||
(void)smsg("%2zu %-5" PRId64 " %-34s <none>",
|
(void)smsg("%2zu %-5" PRId64 " %-34s <none>", i,
|
||||||
i, (long)csinfo[i].pid, csinfo[i].fname);
|
(int64_t)csinfo[i].pid, csinfo[i].fname);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user