1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Build warnings on MS-Windows.
12 Solution: Add type casts. (Mike Williams)
13 Files: src/ex_getln.c, src/message.c, src/term.c
16 *** ../vim-7.3.412/src/ex_getln.c 2012-01-20 20:44:38.000000000 +0100
17 --- src/ex_getln.c 2012-01-26 12:58:54.000000000 +0100
21 if (vim_strsize(hist[i].hisstr) > (int)Columns - 10)
22 trunc_string(hist[i].hisstr, IObuff + STRLEN(IObuff),
23 ! (int)Columns - 10, IOSIZE - STRLEN(IObuff));
25 STRCAT(IObuff, hist[i].hisstr);
29 if (vim_strsize(hist[i].hisstr) > (int)Columns - 10)
30 trunc_string(hist[i].hisstr, IObuff + STRLEN(IObuff),
31 ! (int)Columns - 10, IOSIZE - (int)STRLEN(IObuff));
33 STRCAT(IObuff, hist[i].hisstr);
35 *** ../vim-7.3.412/src/message.c 2012-01-23 20:48:34.000000000 +0100
36 --- src/message.c 2012-01-26 12:58:54.000000000 +0100
41 mch_memmove(buf + e, "...", (size_t)3);
42 ! len = STRLEN(s + i) + 1;
43 if (len >= buflen - e - 3)
44 len = buflen - e - 3 - 1;
45 mch_memmove(buf + e + 3, s + i, len);
49 mch_memmove(buf + e, "...", (size_t)3);
50 ! len = (int)STRLEN(s + i) + 1;
51 if (len >= buflen - e - 3)
52 len = buflen - e - 3 - 1;
53 mch_memmove(buf + e + 3, s + i, len);
54 *** ../vim-7.3.412/src/term.c 2012-01-20 17:15:47.000000000 +0100
55 --- src/term.c 2012-01-26 12:58:54.000000000 +0100
61 ! int slen = STRLEN(src);
63 for (i = 0; i < tc_len; ++i)
69 ! int slen = (int)STRLEN(src);
71 for (i = 0; i < tc_len; ++i)
73 *** ../vim-7.3.412/src/version.c 2012-01-26 11:45:25.000000000 +0100
74 --- src/version.c 2012-01-26 12:59:14.000000000 +0100
78 { /* Add new patch number below this line */
84 It doesn't really matter what you are able to do if you don't do it.
87 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
88 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
89 \\\ an exciting new programming language -- http://www.Zimbu.org ///
90 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///