summaryrefslogtreecommitdiffstats
path: root/src/if_perl.xs
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r--src/if_perl.xs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs
index 076c5c6019..2bf72c5343 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -1136,9 +1136,7 @@ perl_to_vim(SV *sv, typval_T *rettv)
}
}
- list->lv_refcount++;
- rettv->v_type = VAR_LIST;
- rettv->vval.v_list = list;
+ rettv_list_set(rettv, list);
break;
}
case SVt_PVHV: /* dictionary */
@@ -1192,9 +1190,7 @@ perl_to_vim(SV *sv, typval_T *rettv)
}
}
- dict->dv_refcount++;
- rettv->v_type = VAR_DICT;
- rettv->vval.v_dict = dict;
+ rettv_dict_set(rettv, dict);
break;
}
default: /* not convertible */