Patch 8.2.4254
Problem: Using short instead of int.
Solution: Use int. (closes #9658)
Files: src/if_cscope.c
*** ../vim-8.2.4253/src/if_cscope.c 2022-01-28 15:28:00.208927722 +0000
--- src/if_cscope.c 2022-01-29 15:12:06.364573606 +0000
***************
*** 675,688 ****
static int
cs_cnt_connections(void)
{
! short i;
! short cnt = 0;
for (i = 0; i < csinfo_size; i++)
- {
if (csinfo[i].fname != NULL)
cnt++;
- }
return cnt;
}
--- 675,686 ----
static int
cs_cnt_connections(void)
{
! int i;
! int cnt = 0;
for (i = 0; i < csinfo_size; i++)
if (csinfo[i].fname != NULL)
cnt++;
return cnt;
}
***************
*** 1358,1364 ****
char *flags,
stat_T *sb UNUSED)
{
! short i, j;
#ifndef UNIX
BY_HANDLE_FILE_INFORMATION bhfi;
--- 1356,1363 ----
char *flags,
stat_T *sb UNUSED)
{
! int i;
! int j;
#ifndef UNIX
BY_HANDLE_FILE_INFORMATION bhfi;
***************
*** 1522,1528 ****
cs_kill(exarg_T *eap UNUSED)
{
char *stok;
! short i;
if ((stok = strtok((char *)NULL, (const char *)" ")) == NULL)
{
--- 1521,1527 ----
cs_kill(exarg_T *eap UNUSED)
{
char *stok;
! int i;
if ((stok = strtok((char *)NULL, (const char *)" ")) == NULL)
{
***************
*** 2456,2462 ****
static int
cs_show(exarg_T *eap UNUSED)
{
! short i;
if (cs_cnt_connections() == 0)
msg_puts(_("no cscope connections\n"));
else
--- 2455,2462 ----
static int
cs_show(exarg_T *eap UNUSED)
{
! int i;
!
if (cs_cnt_connections() == 0)
msg_puts(_("no cscope connections\n"));
else
*** ../vim-8.2.4253/src/version.c 2022-01-29 14:21:48.204942602 +0000
--- src/version.c 2022-01-29 15:12:23.648317596 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4254,
/**/
--
Why I like vim:
> I like VIM because, when I ask a question in this newsgroup, I get a
> one-line answer. With xemacs, I get a 1Kb lisp script with bugs in it ;-)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///