mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(PVS V576): wrong fprintf() format
https://pvs-studio.com/en/docs/warnings/v576/
Before 1bffe66508
this was originally
"%ld" but that looks like a mistake. At least now, w_height_inner and
w_width_inner are just `int`.
This commit is contained in:
parent
d15defeb2f
commit
0d59c01a64
@ -450,11 +450,11 @@ static int put_view(FILE *fd, win_T *wp, int add_edit, unsigned *flagp, int curr
|
|||||||
}
|
}
|
||||||
} else if (fprintf(fd,
|
} else if (fprintf(fd,
|
||||||
"let s:l = %" PRIdLINENR " - ((%" PRIdLINENR
|
"let s:l = %" PRIdLINENR " - ((%" PRIdLINENR
|
||||||
" * winheight(0) + %" PRId64 ") / %" PRId64 ")\n",
|
" * winheight(0) + %d) / %d)\n",
|
||||||
wp->w_cursor.lnum,
|
wp->w_cursor.lnum,
|
||||||
wp->w_cursor.lnum - wp->w_topline,
|
wp->w_cursor.lnum - wp->w_topline,
|
||||||
(int64_t)(wp->w_height_inner / 2),
|
(wp->w_height_inner / 2),
|
||||||
(int64_t)wp->w_height_inner) < 0) {
|
wp->w_height_inner) < 0) {
|
||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
if (fprintf(fd,
|
if (fprintf(fd,
|
||||||
|
Loading…
Reference in New Issue
Block a user