Karsten Hopp 9e1281
To: vim_dev@googlegroups.com
Karsten Hopp 9e1281
Subject: Patch 7.3.797
Karsten Hopp 9e1281
Fcc: outbox
Karsten Hopp 9e1281
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 9e1281
Mime-Version: 1.0
Karsten Hopp 9e1281
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 9e1281
Content-Transfer-Encoding: 8bit
Karsten Hopp 9e1281
------------
Karsten Hopp 9e1281
Karsten Hopp 9e1281
Patch 7.3.797 (after 7.3.792)
Karsten Hopp 9e1281
Problem:    Compiler warning for size_t to int conversion. (Skeept)
Karsten Hopp 9e1281
Solution:   Add type casts.
Karsten Hopp 9e1281
Files:	    src/ex_cmds.c
Karsten Hopp 9e1281
Karsten Hopp 9e1281
Karsten Hopp 9e1281
*** ../vim-7.3.796/src/ex_cmds.c	2013-01-30 16:30:19.000000000 +0100
Karsten Hopp 9e1281
--- src/ex_cmds.c	2013-01-30 21:52:17.000000000 +0100
Karsten Hopp 9e1281
***************
Karsten Hopp 9e1281
*** 4764,4771 ****
Karsten Hopp 9e1281
  					 * substitute may have inserted or
Karsten Hopp 9e1281
  					 * deleted characters before the
Karsten Hopp 9e1281
  					 * cursor. */
Karsten Hopp 9e1281
! 					len_change = STRLEN(new_line)
Karsten Hopp 9e1281
! 							  - STRLEN(orig_line);
Karsten Hopp 9e1281
  					curwin->w_cursor.col += len_change;
Karsten Hopp 9e1281
  					ml_replace(lnum, new_line, FALSE);
Karsten Hopp 9e1281
  				    }
Karsten Hopp 9e1281
--- 4764,4771 ----
Karsten Hopp 9e1281
  					 * substitute may have inserted or
Karsten Hopp 9e1281
  					 * deleted characters before the
Karsten Hopp 9e1281
  					 * cursor. */
Karsten Hopp 9e1281
! 					len_change = (int)STRLEN(new_line)
Karsten Hopp 9e1281
! 						     - (int)STRLEN(orig_line);
Karsten Hopp 9e1281
  					curwin->w_cursor.col += len_change;
Karsten Hopp 9e1281
  					ml_replace(lnum, new_line, FALSE);
Karsten Hopp 9e1281
  				    }
Karsten Hopp 9e1281
*** ../vim-7.3.796/src/version.c	2013-01-30 21:55:22.000000000 +0100
Karsten Hopp 9e1281
--- src/version.c	2013-01-30 21:53:17.000000000 +0100
Karsten Hopp 9e1281
***************
Karsten Hopp 9e1281
*** 727,728 ****
Karsten Hopp 9e1281
--- 727,730 ----
Karsten Hopp 9e1281
  {   /* Add new patch number below this line */
Karsten Hopp 9e1281
+ /**/
Karsten Hopp 9e1281
+     797,
Karsten Hopp 9e1281
  /**/
Karsten Hopp 9e1281
Karsten Hopp 9e1281
-- 
Karsten Hopp 9e1281
   [SIR LAUNCELOT runs back up the stairs, grabs a rope
Karsten Hopp 9e1281
   of the wall and swings out over the heads of the CROWD in a
Karsten Hopp 9e1281
   swashbuckling manner towards a large window.  He stops just short
Karsten Hopp 9e1281
   of the window and is left swing pathetically back and forth.]
Karsten Hopp 9e1281
LAUNCELOT: Excuse me ... could somebody give me a push ...
Karsten Hopp 9e1281
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 9e1281
Karsten Hopp 9e1281
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 9e1281
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 9e1281
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 9e1281
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///