diff src/ex_cmds.c @ 4086:0cbea05f19c7 v7.3.797

updated for version 7.3.797 Problem: Compiler warning for size_t to int conversion. (Skeept) Solution: Add type casts.
author Bram Moolenaar <bram@vim.org>
date Wed, 30 Jan 2013 21:56:21 +0100
parents 7061704c2014
children 77fa4dee43fc
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -4764,8 +4764,8 @@ do_sub(eap)
 					 * substitute may have inserted or
 					 * deleted characters before the
 					 * cursor. */
-					len_change = STRLEN(new_line)
-							  - STRLEN(orig_line);
+					len_change = (int)STRLEN(new_line)
+						     - (int)STRLEN(orig_line);
 					curwin->w_cursor.col += len_change;
 					ml_replace(lnum, new_line, FALSE);
 				    }