# HG changeset patch # User Bram Moolenaar # Date 1269036528 -3600 # Node ID 20d9fc2f13a4132d6344fb6457040b02720774cf # Parent f63ace015c6302ee9ce23c7c0f64d8134c51db95 updated for version 7.2.403 Problem: Compiler warning for pointer type. (Tony Mechelynck) Solution: Move type cast to the right place. diff --git a/src/if_ruby.c b/src/if_ruby.c --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -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) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 403, +/**/ 402, /**/ 401,