forked from aniani/vim
patch 8.1.0783: compiler warning for signed/unsigned
Problem: Compiler warning for signed/unsigned. Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes #3827)
This commit is contained in:
@@ -1288,7 +1288,7 @@ main_loop(
|
|||||||
* string here. Don't reset keep_msg, msg_attr_keep() uses it
|
* string here. Don't reset keep_msg, msg_attr_keep() uses it
|
||||||
* to check for duplicates. */
|
* to check for duplicates. */
|
||||||
p = keep_msg;
|
p = keep_msg;
|
||||||
msg_attr(p, keep_msg_attr);
|
msg_attr((char *)p, keep_msg_attr);
|
||||||
vim_free(p);
|
vim_free(p);
|
||||||
}
|
}
|
||||||
if (need_fileinfo) /* show file info after redraw */
|
if (need_fileinfo) /* show file info after redraw */
|
||||||
|
@@ -1389,9 +1389,9 @@ msg_putchar(int c)
|
|||||||
msg_putchar_attr(int c, int attr)
|
msg_putchar_attr(int c, int attr)
|
||||||
{
|
{
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
char buf[MB_MAXBYTES + 1];
|
char_u buf[MB_MAXBYTES + 1];
|
||||||
#else
|
#else
|
||||||
char buf[4];
|
char_u buf[4];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (IS_SPECIAL(c))
|
if (IS_SPECIAL(c))
|
||||||
@@ -1404,13 +1404,13 @@ msg_putchar_attr(int c, int attr)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
buf[(*mb_char2bytes)(c, (char_u *)buf)] = NUL;
|
buf[(*mb_char2bytes)(c, buf)] = NUL;
|
||||||
#else
|
#else
|
||||||
buf[0] = c;
|
buf[0] = c;
|
||||||
buf[1] = NUL;
|
buf[1] = NUL;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
msg_puts_attr(buf, attr);
|
msg_puts_attr((char *)buf, attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -791,6 +791,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
783,
|
||||||
/**/
|
/**/
|
||||||
782,
|
782,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user