patch 8.2.4254: using short instead of int
Problem: Using short instead of int.
Solution: Use int. (closes #9658)
diff --git a/src/if_cscope.c b/src/if_cscope.c
index edcd4ca..f8d4dc6 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -675,14 +675,12 @@
static int
cs_cnt_connections(void)
{
- short i;
- short cnt = 0;
+ int i;
+ int cnt = 0;
for (i = 0; i < csinfo_size; i++)
- {
if (csinfo[i].fname != NULL)
cnt++;
- }
return cnt;
}
@@ -1358,7 +1356,8 @@
char *flags,
stat_T *sb UNUSED)
{
- short i, j;
+ int i;
+ int j;
#ifndef UNIX
BY_HANDLE_FILE_INFORMATION bhfi;
@@ -1522,7 +1521,7 @@
cs_kill(exarg_T *eap UNUSED)
{
char *stok;
- short i;
+ int i;
if ((stok = strtok((char *)NULL, (const char *)" ")) == NULL)
{
@@ -2456,7 +2455,8 @@
static int
cs_show(exarg_T *eap UNUSED)
{
- short i;
+ int i;
+
if (cs_cnt_connections() == 0)
msg_puts(_("no cscope connections\n"));
else