Karsten Hopp 004936
To: vim_dev@googlegroups.com
Karsten Hopp 004936
Subject: Patch 7.3.128
Karsten Hopp 004936
Fcc: outbox
Karsten Hopp 004936
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 004936
Mime-Version: 1.0
Karsten Hopp 004936
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 004936
Content-Transfer-Encoding: 8bit
Karsten Hopp 004936
------------
Karsten Hopp 004936
Karsten Hopp 004936
Patch 7.3.128
Karsten Hopp 004936
Problem:    Another compiler warning for signed pointer.
Karsten Hopp 004936
Solution:   Use unsigned int argument for sscanf().
Karsten Hopp 004936
Files:	    src/mark.c
Karsten Hopp 004936
Karsten Hopp 004936
Karsten Hopp 004936
*** ../vim-7.3.127/src/mark.c	2010-08-15 21:57:25.000000000 +0200
Karsten Hopp 004936
--- src/mark.c	2010-12-17 20:00:05.000000000 +0100
Karsten Hopp 004936
***************
Karsten Hopp 004936
*** 1750,1756 ****
Karsten Hopp 004936
  	    {
Karsten Hopp 004936
  		if (line[1] != NUL)
Karsten Hopp 004936
  		{
Karsten Hopp 004936
! 		    sscanf((char *)line + 2, "%ld %u", &pos.lnum, &pos.col);
Karsten Hopp 004936
  		    switch (line[1])
Karsten Hopp 004936
  		    {
Karsten Hopp 004936
  			case '"': curbuf->b_last_cursor = pos; break;
Karsten Hopp 004936
--- 1750,1759 ----
Karsten Hopp 004936
  	    {
Karsten Hopp 004936
  		if (line[1] != NUL)
Karsten Hopp 004936
  		{
Karsten Hopp 004936
! 		    unsigned u;
Karsten Hopp 004936
! 
Karsten Hopp 004936
! 		    sscanf((char *)line + 2, "%ld %u", &pos.lnum, &u);
Karsten Hopp 004936
! 		    pos.col = u;
Karsten Hopp 004936
  		    switch (line[1])
Karsten Hopp 004936
  		    {
Karsten Hopp 004936
  			case '"': curbuf->b_last_cursor = pos; break;
Karsten Hopp 004936
*** ../vim-7.3.127/src/version.c	2011-02-25 14:46:06.000000000 +0100
Karsten Hopp 004936
--- src/version.c	2011-02-25 15:10:34.000000000 +0100
Karsten Hopp 004936
***************
Karsten Hopp 004936
*** 716,717 ****
Karsten Hopp 004936
--- 716,719 ----
Karsten Hopp 004936
  {   /* Add new patch number below this line */
Karsten Hopp 004936
+ /**/
Karsten Hopp 004936
+     128,
Karsten Hopp 004936
  /**/
Karsten Hopp 004936
Karsten Hopp 004936
-- 
Karsten Hopp 004936
FATHER:    Who are you?
Karsten Hopp 004936
PRINCE:    I'm ... your son ...
Karsten Hopp 004936
FATHER:    Not you.
Karsten Hopp 004936
LAUNCELOT: I'm ... er ... Sir Launcelot, sir.
Karsten Hopp 004936
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 004936
Karsten Hopp 004936
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 004936
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 004936
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 004936
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///