0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.128

Problem:    Another compiler warning for signed pointer.
Solution:   Use unsigned int argument for sscanf().
This commit is contained in:
Bram Moolenaar
2011-02-25 15:11:22 +01:00
parent 49789dc987
commit e698addf88
2 changed files with 6 additions and 1 deletions

View 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;

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
128,
/**/
127,
/**/