changeset 2712:43243f7ce351 v7.3.128

updated for version 7.3.128 Problem: Another compiler warning for signed pointer. Solution: Use unsigned int argument for sscanf().
author Bram Moolenaar <bram@vim.org>
date Fri, 25 Feb 2011 15:11:22 +0100
parents 0c39ff7a90a8
children d20d37ef86c8
files src/mark.c src/version.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/mark.c
+++ b/src/mark.c
@@ -1750,7 +1750,10 @@ copy_viminfo_marks(virp, fp_out, count, 
 	    {
 		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;
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    128,
+/**/
     127,
 /**/
     126,