Christian Brabandt wrote:

> Bram,
> appveyor shows a warning when building Vim using MSVC:
> https://ci.appveyor.com/project/chrisbra/vim-win32-installer-33v6e/build/79/job/39g3qqoc1gg4e1ob#L334
> message.c(307) : warning C4267: '=' : conversion from 'size_t' to 'int', 
> possible loss of data
> 
> 
> Here is a patch:
> diff --git a/src/message.c b/src/message.c
> index fe68b5b..b4d7b65 100644
> --- a/src/message.c
> +++ b/src/message.c
> @@ -304,7 +304,7 @@ trunc_string(
>             if (len + n > room || half == 0)
>                 break;
>             len += n;
> -           i = half;
> +           i = (int)half;
>         }
>      }
>      else

Thanks.  You beat Mike :-).

-- 
Beer & pretzels can't be served at the same time in any bar or restaurant.
                [real standing law in North Dakota, United States of America]

 /// 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.

Raspunde prin e-mail lui