comparison src/if_ruby.c @ 20830:9064044fd4f6 v8.2.0967

patch 8.2.0967: unnecessary type casts for vim_strnsave() Commit: https://github.com/vim/vim/commit/71ccd03ee8a43b20000214a9c99dcc90f039edca Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 12 22:59:11 2020 +0200 patch 8.2.0967: unnecessary type casts for vim_strnsave() Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Jun 2020 23:00:04 +0200
parents d571231175b4
children 55f8b7da27f3
comparison
equal deleted inserted replaced
20829:3d0d6410aecd 20830:9064044fd4f6
1856 { 1856 {
1857 VALUE str = (VALUE)RSTRING(val); 1857 VALUE str = (VALUE)RSTRING(val);
1858 1858
1859 rettv->v_type = VAR_STRING; 1859 rettv->v_type = VAR_STRING;
1860 rettv->vval.v_string = vim_strnsave((char_u *)RSTRING_PTR(str), 1860 rettv->vval.v_string = vim_strnsave((char_u *)RSTRING_PTR(str),
1861 (int)RSTRING_LEN(str)); 1861 RSTRING_LEN(str));
1862 } 1862 }
1863 break; 1863 break;
1864 case T_ARRAY: 1864 case T_ARRAY:
1865 { 1865 {
1866 list_T *l; 1866 list_T *l;