]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.403 v7.2.403
authorBram Moolenaar <Bram@vim.org>
Fri, 19 Mar 2010 22:08:48 +0000 (23:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 19 Mar 2010 22:08:48 +0000 (23:08 +0100)
Problem:    Compiler warning for pointer type. (Tony Mechelynck)
Solution:   Move type cast to the right place.

src/if_ruby.c
src/version.c

index 41cb7917b83a2ecb7198fed5876738a38ee073d7..2ee329bcfc88e2fff4cf6995c102df628239b0a4 100644 (file)
@@ -722,8 +722,8 @@ static VALUE vim_to_ruby(typval_T *tv)
 
     if (tv->v_type == VAR_STRING)
     {
-       result = rb_str_new2((char *)(tv->vval.v_string == NULL
-                                                  ? "" : tv->vval.v_string));
+       result = rb_str_new2(tv->vval.v_string == NULL
+                                         ? "" : (char *)(tv->vval.v_string));
     }
     else if (tv->v_type == VAR_NUMBER)
     {
index c625dffa90c9b478b1cfd9131a8bd30a6553d485..12174c7aee044f0965552117bf2c07456b5b5ff6 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    403,
 /**/
     402,
 /**/