From ed171f7be29f7337aaba8c420406afc8a58c1613 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 15 Jan 2019 22:20:26 +0100 Subject: PVS/V1028: cast operands, not the result --- src/nvim/eval.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 4cf8a01ddb..85b838e443 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -19902,13 +19902,15 @@ void ex_function(exarg_T *eap) if (FUNCLINE(fp, j) == NULL) continue; msg_putchar('\n'); - msg_outnum((long)(j + 1)); - if (j < 9) + msg_outnum((long)j + 1); + if (j < 9) { msg_putchar(' '); - if (j < 99) + } + if (j < 99) { msg_putchar(' '); - msg_prt_line(FUNCLINE(fp, j), FALSE); - ui_flush(); /* show a line at a time */ + } + msg_prt_line(FUNCLINE(fp, j), false); + ui_flush(); // show a line at a time os_breakcheck(); } if (!got_int) { -- cgit