Mercurial > vim
changeset 2121:20d9fc2f13a4 v7.2.403
updated for version 7.2.403
Problem: Compiler warning for pointer type. (Tony Mechelynck)
Solution: Move type cast to the right place.
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Fri, 19 Mar 2010 23:08:48 +0100 |
parents | f63ace015c63 |
children | 476336a5ae95 |
files | src/if_ruby.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) {