changeset 3290:821c8be2e9d6 v7.3.413

updated for version 7.3.413 Problem: Build warnings on MS-Windows. Solution: Add type casts. (Mike Williams)
author Bram Moolenaar <bram@vim.org>
date Thu, 26 Jan 2012 13:01:59 +0100
parents 4f27983903fd
children 9dbecccbf14e
files src/ex_getln.c src/message.c src/term.c src/version.c
diffstat 4 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -5923,7 +5923,7 @@ ex_history(eap)
 							      hist[i].hisnum);
 		    if (vim_strsize(hist[i].hisstr) > (int)Columns - 10)
 			trunc_string(hist[i].hisstr, IObuff + STRLEN(IObuff),
-				  (int)Columns - 10, IOSIZE - STRLEN(IObuff));
+			     (int)Columns - 10, IOSIZE - (int)STRLEN(IObuff));
 		    else
 			STRCAT(IObuff, hist[i].hisstr);
 		    msg_outtrans(IObuff);
--- a/src/message.c
+++ b/src/message.c
@@ -325,7 +325,7 @@ trunc_string(s, buf, room, buflen)
     if (e + 3 < buflen)
     {
 	mch_memmove(buf + e, "...", (size_t)3);
-	len = STRLEN(s + i) + 1;
+	len = (int)STRLEN(s + i) + 1;
 	if (len >= buflen - e - 3)
 	    len = buflen - e - 3 - 1;
 	mch_memmove(buf + e + 3, s + i, len);
--- a/src/term.c
+++ b/src/term.c
@@ -5252,7 +5252,7 @@ find_term_bykeys(src)
     char_u	*src;
 {
     int		i;
-    int		slen = STRLEN(src);
+    int		slen = (int)STRLEN(src);
 
     for (i = 0; i < tc_len; ++i)
     {
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    413,
+/**/
     412,
 /**/
     411,