summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.413
blob: c32c9b1dddf805776710c5c1761b5dba08537907 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
To: vim_dev@googlegroups.com
Subject: Patch 7.3.413
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.413
Problem:    Build warnings on MS-Windows.
Solution:   Add type casts. (Mike Williams)
Files:	    src/ex_getln.c, src/message.c, src/term.c


*** ../vim-7.3.412/src/ex_getln.c	2012-01-20 20:44:38.000000000 +0100
--- src/ex_getln.c	2012-01-26 12:58:54.000000000 +0100
***************
*** 5923,5929 ****
  							      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));
  		    else
  			STRCAT(IObuff, hist[i].hisstr);
  		    msg_outtrans(IObuff);
--- 5923,5929 ----
  							      hist[i].hisnum);
  		    if (vim_strsize(hist[i].hisstr) > (int)Columns - 10)
  			trunc_string(hist[i].hisstr, IObuff + STRLEN(IObuff),
! 			     (int)Columns - 10, IOSIZE - (int)STRLEN(IObuff));
  		    else
  			STRCAT(IObuff, hist[i].hisstr);
  		    msg_outtrans(IObuff);
*** ../vim-7.3.412/src/message.c	2012-01-23 20:48:34.000000000 +0100
--- src/message.c	2012-01-26 12:58:54.000000000 +0100
***************
*** 325,331 ****
      if (e + 3 < buflen)
      {
  	mch_memmove(buf + e, "...", (size_t)3);
! 	len = STRLEN(s + i) + 1;
  	if (len >= buflen - e - 3)
  	    len = buflen - e - 3 - 1;
  	mch_memmove(buf + e + 3, s + i, len);
--- 325,331 ----
      if (e + 3 < buflen)
      {
  	mch_memmove(buf + e, "...", (size_t)3);
! 	len = (int)STRLEN(s + i) + 1;
  	if (len >= buflen - e - 3)
  	    len = buflen - e - 3 - 1;
  	mch_memmove(buf + e + 3, s + i, len);
*** ../vim-7.3.412/src/term.c	2012-01-20 17:15:47.000000000 +0100
--- src/term.c	2012-01-26 12:58:54.000000000 +0100
***************
*** 5252,5258 ****
      char_u	*src;
  {
      int		i;
!     int		slen = STRLEN(src);
  
      for (i = 0; i < tc_len; ++i)
      {
--- 5252,5258 ----
      char_u	*src;
  {
      int		i;
!     int		slen = (int)STRLEN(src);
  
      for (i = 0; i < tc_len; ++i)
      {
*** ../vim-7.3.412/src/version.c	2012-01-26 11:45:25.000000000 +0100
--- src/version.c	2012-01-26 12:59:14.000000000 +0100
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     413,
  /**/

-- 
It doesn't really matter what you are able to do if you don't do it.
				(Bram Moolenaar)

 /// Bram Moolenaar -- Bram@Moolenaar.net -- 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    ///