mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.2.403
Problem: Compiler warning for pointer type. (Tony Mechelynck) Solution: Move type cast to the right place.
This commit is contained in:
@@ -722,8 +722,8 @@ static VALUE vim_to_ruby(typval_T *tv)
|
|||||||
|
|
||||||
if (tv->v_type == VAR_STRING)
|
if (tv->v_type == VAR_STRING)
|
||||||
{
|
{
|
||||||
result = rb_str_new2((char *)(tv->vval.v_string == NULL
|
result = rb_str_new2(tv->vval.v_string == NULL
|
||||||
? "" : tv->vval.v_string));
|
? "" : (char *)(tv->vval.v_string));
|
||||||
}
|
}
|
||||||
else if (tv->v_type == VAR_NUMBER)
|
else if (tv->v_type == VAR_NUMBER)
|
||||||
{
|
{
|
||||||
|
@@ -681,6 +681,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
403,
|
||||||
/**/
|
/**/
|
||||||
402,
|
402,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user