]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.128 v7.3.128
authorBram Moolenaar <Bram@vim.org>
Fri, 25 Feb 2011 14:11:22 +0000 (15:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 25 Feb 2011 14:11:22 +0000 (15:11 +0100)
Problem:    Another compiler warning for signed pointer.
Solution:   Use unsigned int argument for sscanf().

src/mark.c
src/version.c

index 2669cb14ce3c61fd05d38b76c0d47316e1dc3783..f8b4c576fe9c6a0fd31e1e9c6b6fd8f342ab2a65 100644 (file)
@@ -1750,7 +1750,10 @@ copy_viminfo_marks(virp, fp_out, count, eof, flags)
            {
                if (line[1] != NUL)
                {
-                   sscanf((char *)line + 2, "%ld %u", &pos.lnum, &pos.col);
+                   unsigned u;
+
+                   sscanf((char *)line + 2, "%ld %u", &pos.lnum, &u);
+                   pos.col = u;
                    switch (line[1])
                    {
                        case '"': curbuf->b_last_cursor = pos; break;
index e72af8e7d42b1a071e8e7a8ed1a3a26c4a6ed650..7e6af4e7d1567447629e143ef45c67b5189e3dbd 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    128,
 /**/
     127,
 /**/