diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-02-25 15:11:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-02-25 15:11:22 +0100 |
commit | e698addf8824c78db8fc201071f69effc616af42 (patch) | |
tree | 336c19babd7941280c3931a93e295a4eb7e36abd /src/mark.c | |
parent | 49789dc987f93b6852bd8de6090305b8e4cc8a75 (diff) | |
download | vim-git-e698addf8824c78db8fc201071f69effc616af42.tar.gz |
updated for version 7.3.128v7.3.128
Problem: Another compiler warning for signed pointer.
Solution: Use unsigned int argument for sscanf().
Diffstat (limited to 'src/mark.c')
-rw-r--r-- | src/mark.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mark.c b/src/mark.c index 2669cb14c..f8b4c576f 100644 --- a/src/mark.c +++ b/src/mark.c @@ -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; |