Karsten Hopp 459c70
To: vim-dev@vim.org
Karsten Hopp 459c70
Subject: Patch 7.2.098
Karsten Hopp 459c70
Fcc: outbox
Karsten Hopp 459c70
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 459c70
Mime-Version: 1.0
Karsten Hopp 459c70
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 459c70
Content-Transfer-Encoding: 8bit
Karsten Hopp 459c70
------------
Karsten Hopp 459c70
Karsten Hopp 459c70
Patch 7.2.098
Karsten Hopp 459c70
Problem:    Warning for signed/unsigned pointer.
Karsten Hopp 459c70
Solution:   Add type cast.
Karsten Hopp 459c70
Files:	    src/eval.c
Karsten Hopp 459c70
Karsten Hopp 459c70
Karsten Hopp 459c70
*** ../vim-7.2.097/src/eval.c	Wed Jan 28 19:08:31 2009
Karsten Hopp 459c70
--- src/eval.c	Wed Feb  4 13:09:01 2009
Karsten Hopp 459c70
***************
Karsten Hopp 459c70
*** 3928,3934 ****
Karsten Hopp 459c70
  
Karsten Hopp 459c70
  /*
Karsten Hopp 459c70
   * Handle top level expression:
Karsten Hopp 459c70
!  *	expr1 ? expr0 : expr0
Karsten Hopp 459c70
   *
Karsten Hopp 459c70
   * "arg" must point to the first non-white of the expression.
Karsten Hopp 459c70
   * "arg" is advanced to the next non-white after the recognized expression.
Karsten Hopp 459c70
--- 3928,3934 ----
Karsten Hopp 459c70
  
Karsten Hopp 459c70
  /*
Karsten Hopp 459c70
   * Handle top level expression:
Karsten Hopp 459c70
!  *	expr2 ? expr1 : expr1
Karsten Hopp 459c70
   *
Karsten Hopp 459c70
   * "arg" must point to the first non-white of the expression.
Karsten Hopp 459c70
   * "arg" is advanced to the next non-white after the recognized expression.
Karsten Hopp 459c70
***************
Karsten Hopp 459c70
*** 19912,19918 ****
Karsten Hopp 459c70
  						      : eval_isnamec(arg[j])))
Karsten Hopp 459c70
  		++j;
Karsten Hopp 459c70
  	    if (arg[j] != NUL)
Karsten Hopp 459c70
! 		emsg_funcname(e_invarg2, arg);
Karsten Hopp 459c70
  	}
Karsten Hopp 459c70
      }
Karsten Hopp 459c70
  
Karsten Hopp 459c70
--- 19912,19918 ----
Karsten Hopp 459c70
  						      : eval_isnamec(arg[j])))
Karsten Hopp 459c70
  		++j;
Karsten Hopp 459c70
  	    if (arg[j] != NUL)
Karsten Hopp 459c70
! 		emsg_funcname((char *)e_invarg2, arg);
Karsten Hopp 459c70
  	}
Karsten Hopp 459c70
      }
Karsten Hopp 459c70
  
Karsten Hopp 459c70
*** ../vim-7.2.097/src/version.c	Wed Feb  4 14:18:44 2009
Karsten Hopp 459c70
--- src/version.c	Wed Feb  4 16:24:06 2009
Karsten Hopp 459c70
***************
Karsten Hopp 459c70
*** 678,679 ****
Karsten Hopp 459c70
--- 678,681 ----
Karsten Hopp 459c70
  {   /* Add new patch number below this line */
Karsten Hopp 459c70
+ /**/
Karsten Hopp 459c70
+     98,
Karsten Hopp 459c70
  /**/
Karsten Hopp 459c70
Karsten Hopp 459c70
-- 
Karsten Hopp 459c70
Everybody lies, but it doesn't matter since nobody listens.
Karsten Hopp 459c70
                                -- Lieberman's Law
Karsten Hopp 459c70
Karsten Hopp 459c70
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 459c70
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 459c70
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 459c70
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///