Karsten Hopp 0cf258
To: vim_dev@googlegroups.com
Karsten Hopp 0cf258
Subject: Patch 7.3.459
Karsten Hopp 0cf258
Fcc: outbox
Karsten Hopp 0cf258
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 0cf258
Mime-Version: 1.0
Karsten Hopp 0cf258
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 0cf258
Content-Transfer-Encoding: 8bit
Karsten Hopp 0cf258
------------
Karsten Hopp 0cf258
Karsten Hopp 0cf258
Patch 7.3.459
Karsten Hopp 0cf258
Problem:    Win32: Warnings for type conversion.
Karsten Hopp 0cf258
Solution:   Add type casts. (Mike Williams)
Karsten Hopp 0cf258
Files:	    src/misc2.c, src/os_win32.c
Karsten Hopp 0cf258
Karsten Hopp 0cf258
Karsten Hopp 0cf258
*** ../vim-7.3.458/src/misc2.c	2012-02-22 18:12:29.000000000 +0100
Karsten Hopp 0cf258
--- src/misc2.c	2012-02-29 13:44:17.000000000 +0100
Karsten Hopp 0cf258
***************
Karsten Hopp 0cf258
*** 2074,2080 ****
Karsten Hopp 0cf258
  	    n = gap->ga_growsize;
Karsten Hopp 0cf258
  	new_len = gap->ga_itemsize * (gap->ga_len + n);
Karsten Hopp 0cf258
  	pp = (gap->ga_data == NULL)
Karsten Hopp 0cf258
! 			? alloc(new_len) : vim_realloc(gap->ga_data, new_len);
Karsten Hopp 0cf258
  	if (pp == NULL)
Karsten Hopp 0cf258
  	    return FAIL;
Karsten Hopp 0cf258
  	old_len = gap->ga_itemsize * gap->ga_maxlen;
Karsten Hopp 0cf258
--- 2074,2080 ----
Karsten Hopp 0cf258
  	    n = gap->ga_growsize;
Karsten Hopp 0cf258
  	new_len = gap->ga_itemsize * (gap->ga_len + n);
Karsten Hopp 0cf258
  	pp = (gap->ga_data == NULL)
Karsten Hopp 0cf258
! 	      ? alloc((unsigned)new_len) : vim_realloc(gap->ga_data, new_len);
Karsten Hopp 0cf258
  	if (pp == NULL)
Karsten Hopp 0cf258
  	    return FAIL;
Karsten Hopp 0cf258
  	old_len = gap->ga_itemsize * gap->ga_maxlen;
Karsten Hopp 0cf258
*** ../vim-7.3.458/src/os_win32.c	2012-02-22 15:34:05.000000000 +0100
Karsten Hopp 0cf258
--- src/os_win32.c	2012-02-29 13:43:39.000000000 +0100
Karsten Hopp 0cf258
***************
Karsten Hopp 0cf258
*** 264,270 ****
Karsten Hopp 0cf258
      static void
Karsten Hopp 0cf258
  unescape_shellxquote(char_u *p, char_u *escaped)
Karsten Hopp 0cf258
  {
Karsten Hopp 0cf258
!     int	    l = STRLEN(p);
Karsten Hopp 0cf258
      int	    n;
Karsten Hopp 0cf258
  
Karsten Hopp 0cf258
      while (*p != NUL)
Karsten Hopp 0cf258
--- 264,270 ----
Karsten Hopp 0cf258
      static void
Karsten Hopp 0cf258
  unescape_shellxquote(char_u *p, char_u *escaped)
Karsten Hopp 0cf258
  {
Karsten Hopp 0cf258
!     int	    l = (int)STRLEN(p);
Karsten Hopp 0cf258
      int	    n;
Karsten Hopp 0cf258
  
Karsten Hopp 0cf258
      while (*p != NUL)
Karsten Hopp 0cf258
*** ../vim-7.3.458/src/version.c	2012-02-29 13:51:32.000000000 +0100
Karsten Hopp 0cf258
--- src/version.c	2012-02-29 13:58:08.000000000 +0100
Karsten Hopp 0cf258
***************
Karsten Hopp 0cf258
*** 716,717 ****
Karsten Hopp 0cf258
--- 716,719 ----
Karsten Hopp 0cf258
  {   /* Add new patch number below this line */
Karsten Hopp 0cf258
+ /**/
Karsten Hopp 0cf258
+     459,
Karsten Hopp 0cf258
  /**/
Karsten Hopp 0cf258
Karsten Hopp 0cf258
-- 
Karsten Hopp 0cf258
"A clear conscience is usually the sign of a bad memory."
Karsten Hopp 0cf258
                             -- Steven Wright
Karsten Hopp 0cf258
Karsten Hopp 0cf258
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 0cf258
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 0cf258
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 0cf258
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///