Karsten Hopp 724185
To: vim-dev@vim.org
Karsten Hopp 724185
Subject: patch 7.0.188
Karsten Hopp 724185
Fcc: outbox
Karsten Hopp 724185
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 724185
Mime-Version: 1.0
Karsten Hopp 724185
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 724185
Content-Transfer-Encoding: 8bit
Karsten Hopp 724185
------------
Karsten Hopp 724185
Karsten Hopp 724185
Patch 7.0.188 (after 7.0.186)
Karsten Hopp 724185
Problem:    Warning for wrong pointer type.
Karsten Hopp 724185
Solution:   Add a type cast.
Karsten Hopp 724185
Files:	    src/search.c
Karsten Hopp 724185
Karsten Hopp 724185
Karsten Hopp 724185
*** ../vim-7.0.187/src/search.c	Tue Jan 16 16:00:38 2007
Karsten Hopp 724185
--- src/search.c	Tue Jan 16 21:16:01 2007
Karsten Hopp 724185
***************
Karsten Hopp 724185
*** 814,820 ****
Karsten Hopp 724185
  			{
Karsten Hopp 724185
  			    /* 'e' offset may put us just below the last line */
Karsten Hopp 724185
  			    if (pos->lnum > buf->b_ml.ml_line_count)
Karsten Hopp 724185
! 				ptr = "";
Karsten Hopp 724185
  			    else
Karsten Hopp 724185
  				ptr = ml_get_buf(buf, pos->lnum, FALSE);
Karsten Hopp 724185
  			    pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
Karsten Hopp 724185
--- 814,820 ----
Karsten Hopp 724185
  			{
Karsten Hopp 724185
  			    /* 'e' offset may put us just below the last line */
Karsten Hopp 724185
  			    if (pos->lnum > buf->b_ml.ml_line_count)
Karsten Hopp 724185
! 				ptr = (char_u *)"";
Karsten Hopp 724185
  			    else
Karsten Hopp 724185
  				ptr = ml_get_buf(buf, pos->lnum, FALSE);
Karsten Hopp 724185
  			    pos->col -= (*mb_head_off)(ptr, ptr + pos->col);
Karsten Hopp 724185
*** ../vim-7.0.187/src/version.c	Tue Jan 16 21:31:38 2007
Karsten Hopp 724185
--- src/version.c	Tue Jan 16 21:33:05 2007
Karsten Hopp 724185
***************
Karsten Hopp 724185
*** 668,669 ****
Karsten Hopp 724185
--- 668,671 ----
Karsten Hopp 724185
  {   /* Add new patch number below this line */
Karsten Hopp 724185
+ /**/
Karsten Hopp 724185
+     188,
Karsten Hopp 724185
  /**/
Karsten Hopp 724185
Karsten Hopp 724185
-- 
Karsten Hopp 724185
Due knot trussed yore spell chequer two fined awl miss steaks.
Karsten Hopp 724185
Karsten Hopp 724185
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 724185
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 724185
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 724185
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///