mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
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 vim/vim#3827)
63c0ccd2b6
This commit is contained in:
@@ -1376,7 +1376,7 @@ void msg_putchar(int c)
|
|||||||
|
|
||||||
void msg_putchar_attr(int c, int attr)
|
void msg_putchar_attr(int c, int attr)
|
||||||
{
|
{
|
||||||
char buf[MB_MAXBYTES + 1];
|
char_u buf[MB_MAXBYTES + 1];
|
||||||
|
|
||||||
if (IS_SPECIAL(c)) {
|
if (IS_SPECIAL(c)) {
|
||||||
buf[0] = (char)K_SPECIAL;
|
buf[0] = (char)K_SPECIAL;
|
||||||
@@ -1384,9 +1384,9 @@ void msg_putchar_attr(int c, int attr)
|
|||||||
buf[2] = (char)K_THIRD(c);
|
buf[2] = (char)K_THIRD(c);
|
||||||
buf[3] = NUL;
|
buf[3] = NUL;
|
||||||
} else {
|
} else {
|
||||||
buf[utf_char2bytes(c, (char_u *)buf)] = NUL;
|
buf[utf_char2bytes(c, buf)] = NUL;
|
||||||
}
|
}
|
||||||
msg_puts_attr(buf, attr);
|
msg_puts_attr((const char *)buf, attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void msg_outnum(long n)
|
void msg_outnum(long n)
|
||||||
|
Reference in New Issue
Block a user