Karsten Hopp 81c285
To: vim-dev@vim.org
Karsten Hopp 81c285
Subject: Patch 7.2.158
Karsten Hopp 81c285
Fcc: outbox
Karsten Hopp 81c285
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 81c285
Mime-Version: 1.0
Karsten Hopp 81c285
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 81c285
Content-Transfer-Encoding: 8bit
Karsten Hopp 81c285
------------
Karsten Hopp 81c285
Karsten Hopp 81c285
Patch 7.2.158
Karsten Hopp 81c285
Problem:    Warnings from VisualC compiler.
Karsten Hopp 81c285
Solution:   Add type casts. (George Reilly)
Karsten Hopp 81c285
Files:	    src/ops.c
Karsten Hopp 81c285
Karsten Hopp 81c285
Karsten Hopp 81c285
*** ../vim-7.2.157/src/ops.c	Wed Mar 11 16:26:01 2009
Karsten Hopp 81c285
--- src/ops.c	Wed Apr 22 13:01:46 2009
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 495,504 ****
Karsten Hopp 81c285
  	block_space_width = non_white_col - oap->start_vcol;
Karsten Hopp 81c285
  	/* We will shift by "total" or "block_space_width", whichever is less.
Karsten Hopp 81c285
  	 */
Karsten Hopp 81c285
! 	shift_amount = (block_space_width < total? block_space_width: total);
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  	/* The column to which we will shift the text.  */
Karsten Hopp 81c285
! 	destination_col = non_white_col - shift_amount;
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  	/* Now let's find out how much of the beginning of the line we can
Karsten Hopp 81c285
  	 * reuse without modification.  */
Karsten Hopp 81c285
--- 495,505 ----
Karsten Hopp 81c285
  	block_space_width = non_white_col - oap->start_vcol;
Karsten Hopp 81c285
  	/* We will shift by "total" or "block_space_width", whichever is less.
Karsten Hopp 81c285
  	 */
Karsten Hopp 81c285
! 	shift_amount = (block_space_width < (size_t)total
Karsten Hopp 81c285
! 					 ? block_space_width : (size_t)total);
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  	/* The column to which we will shift the text.  */
Karsten Hopp 81c285
! 	destination_col = (colnr_T)(non_white_col - shift_amount);
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  	/* Now let's find out how much of the beginning of the line we can
Karsten Hopp 81c285
  	 * reuse without modification.  */
Karsten Hopp 81c285
*** ../vim-7.2.157/src/version.c	Wed Apr 22 16:42:24 2009
Karsten Hopp 81c285
--- src/version.c	Wed Apr 22 17:42:19 2009
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 678,679 ****
Karsten Hopp 81c285
--- 678,681 ----
Karsten Hopp 81c285
  {   /* Add new patch number below this line */
Karsten Hopp 81c285
+ /**/
Karsten Hopp 81c285
+     158,
Karsten Hopp 81c285
  /**/
Karsten Hopp 81c285
Karsten Hopp 81c285
-- 
Karsten Hopp 81c285
ARTHUR:        What?
Karsten Hopp 81c285
BLACK KNIGHT:  None shall pass.
Karsten Hopp 81c285
ARTHUR:        I have no quarrel with you, good Sir knight, but I must cross
Karsten Hopp 81c285
               this bridge.
Karsten Hopp 81c285
BLACK KNIGHT:  Then you shall die.
Karsten Hopp 81c285
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 81c285
Karsten Hopp 81c285
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 81c285
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 81c285
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 81c285
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///