]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.797 v7.3.797
authorBram Moolenaar <Bram@vim.org>
Wed, 30 Jan 2013 20:56:21 +0000 (21:56 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 30 Jan 2013 20:56:21 +0000 (21:56 +0100)
Problem:    Compiler warning for size_t to int conversion. (Skeept)
Solution:   Add type casts.

src/ex_cmds.c
src/version.c

index 0b6830969755fb2beda24d4826f3906cf34ba68a..3c865e784949e9b97c7831592f237c3bf1fdce99 100644 (file)
@@ -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);
                                    }
index f289e437e10a893ec0250f8b6c15dbb01d64243c..8cd0432d02a7b2bac8cdeb0b0919755501a3ad73 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    797,
 /**/
     796,
 /**/