diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-19 21:06:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-19 21:06:58 +0100 |
commit | 63c0ccd2b68ce854f294e6f149cc700c7f543674 (patch) | |
tree | 7c0652ffe1d5314027fa890822f72f4149583111 /src/message.c | |
parent | 2d951a486e632f99fe039c0b0a1685f1fe7879b2 (diff) | |
download | vim-git-63c0ccd2b68ce854f294e6f149cc700c7f543674.tar.gz |
patch 8.1.0783: compiler warning for signed/unsignedv8.1.0783
Problem: Compiler warning for signed/unsigned.
Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes #3827)
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/message.c b/src/message.c index 448173c0b..0c3b5324d 100644 --- a/src/message.c +++ b/src/message.c @@ -1389,9 +1389,9 @@ msg_putchar(int c) msg_putchar_attr(int c, int attr) { #ifdef FEAT_MBYTE - char buf[MB_MAXBYTES + 1]; + char_u buf[MB_MAXBYTES + 1]; #else - char buf[4]; + char_u buf[4]; #endif if (IS_SPECIAL(c)) @@ -1404,13 +1404,13 @@ msg_putchar_attr(int c, int attr) else { #ifdef FEAT_MBYTE - buf[(*mb_char2bytes)(c, (char_u *)buf)] = NUL; + buf[(*mb_char2bytes)(c, buf)] = NUL; #else buf[0] = c; buf[1] = NUL; #endif } - msg_puts_attr(buf, attr); + msg_puts_attr((char *)buf, attr); } void |