Karsten Hopp 4e066c
To: vim-dev@vim.org
Karsten Hopp 4e066c
Subject: Patch 7.2.403
Karsten Hopp 4e066c
Fcc: outbox
Karsten Hopp 4e066c
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4e066c
Mime-Version: 1.0
Karsten Hopp 4e066c
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 4e066c
Content-Transfer-Encoding: 8bit
Karsten Hopp 4e066c
------------
Karsten Hopp 4e066c
Karsten Hopp 4e066c
Patch 7.2.403 (after 7.2.400)
Karsten Hopp 4e066c
Problem:    Compiler warning for pointer type. (Tony Mechelynck)
Karsten Hopp 4e066c
Solution:   Move type cast to the right place.
Karsten Hopp 4e066c
Files:	    src/if_ruby.c
Karsten Hopp 4e066c
Karsten Hopp 4e066c
Karsten Hopp 4e066c
*** ../vim-7.2.402/src/if_ruby.c	2010-03-17 18:15:17.000000000 +0100
Karsten Hopp 4e066c
--- src/if_ruby.c	2010-03-19 23:08:06.000000000 +0100
Karsten Hopp 4e066c
***************
Karsten Hopp 4e066c
*** 722,729 ****
Karsten Hopp 4e066c
  
Karsten Hopp 4e066c
      if (tv->v_type == VAR_STRING)
Karsten Hopp 4e066c
      {
Karsten Hopp 4e066c
! 	result = rb_str_new2((char *)(tv->vval.v_string == NULL
Karsten Hopp 4e066c
! 						   ? "" : tv->vval.v_string));
Karsten Hopp 4e066c
      }
Karsten Hopp 4e066c
      else if (tv->v_type == VAR_NUMBER)
Karsten Hopp 4e066c
      {
Karsten Hopp 4e066c
--- 722,729 ----
Karsten Hopp 4e066c
  
Karsten Hopp 4e066c
      if (tv->v_type == VAR_STRING)
Karsten Hopp 4e066c
      {
Karsten Hopp 4e066c
! 	result = rb_str_new2(tv->vval.v_string == NULL
Karsten Hopp 4e066c
! 					  ? "" : (char *)(tv->vval.v_string));
Karsten Hopp 4e066c
      }
Karsten Hopp 4e066c
      else if (tv->v_type == VAR_NUMBER)
Karsten Hopp 4e066c
      {
Karsten Hopp 4e066c
*** ../vim-7.2.402/src/version.c	2010-03-17 19:53:44.000000000 +0100
Karsten Hopp 4e066c
--- src/version.c	2010-03-19 23:07:13.000000000 +0100
Karsten Hopp 4e066c
***************
Karsten Hopp 4e066c
*** 683,684 ****
Karsten Hopp 4e066c
--- 683,686 ----
Karsten Hopp 4e066c
  {   /* Add new patch number below this line */
Karsten Hopp 4e066c
+ /**/
Karsten Hopp 4e066c
+     403,
Karsten Hopp 4e066c
  /**/
Karsten Hopp 4e066c
Karsten Hopp 4e066c
-- 
Karsten Hopp 4e066c
If "R" is Reverse, how come "D" is FORWARD?
Karsten Hopp 4e066c
Karsten Hopp 4e066c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4e066c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4e066c
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 4e066c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///