Patch 8.1.0783
Problem: Compiler warning for signed/unsigned.
Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes #3827)
Files: src/main.c, src/message.c
*** ../vim-8.1.0782/src/main.c 2019-01-17 15:43:21.761878368 +0100
--- src/main.c 2019-01-19 17:19:10.514502365 +0100
***************
*** 1288,1294 ****
* string here. Don't reset keep_msg, msg_attr_keep() uses it
* to check for duplicates. */
p = keep_msg;
! msg_attr(p, keep_msg_attr);
vim_free(p);
}
if (need_fileinfo) /* show file info after redraw */
--- 1288,1294 ----
* string here. Don't reset keep_msg, msg_attr_keep() uses it
* to check for duplicates. */
p = keep_msg;
! msg_attr((char *)p, keep_msg_attr);
vim_free(p);
}
if (need_fileinfo) /* show file info after redraw */
*** ../vim-8.1.0782/src/message.c 2019-01-19 17:43:03.421449119 +0100
--- src/message.c 2019-01-19 21:05:20.864866886 +0100
***************
*** 1389,1397 ****
msg_putchar_attr(int c, int attr)
{
#ifdef FEAT_MBYTE
! char buf[MB_MAXBYTES + 1];
#else
! char buf[4];
#endif
if (IS_SPECIAL(c))
--- 1389,1397 ----
msg_putchar_attr(int c, int attr)
{
#ifdef FEAT_MBYTE
! char_u buf[MB_MAXBYTES + 1];
#else
! char_u buf[4];
#endif
if (IS_SPECIAL(c))
***************
*** 1404,1416 ****
else
{
#ifdef FEAT_MBYTE
! buf[(*mb_char2bytes)(c, (char_u *)buf)] = NUL;
#else
buf[0] = c;
buf[1] = NUL;
#endif
}
! msg_puts_attr(buf, attr);
}
void
--- 1404,1416 ----
else
{
#ifdef FEAT_MBYTE
! buf[(*mb_char2bytes)(c, buf)] = NUL;
#else
buf[0] = c;
buf[1] = NUL;
#endif
}
! msg_puts_attr((char *)buf, attr);
}
void
*** ../vim-8.1.0782/src/version.c 2019-01-19 19:54:17.141981393 +0100
--- src/version.c 2019-01-19 21:05:53.928611900 +0100
***************
*** 793,794 ****
--- 793,796 ----
{ /* Add new patch number below this line */
+ /**/
+ 783,
/**/
--
hundred-and-one symptoms of being an internet addict:
264. You turn to the teletext page "surfing report" and are surprised that it
is about sizes of waves and a weather forecast for seaside resorts.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.