comparison src/register.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 b8ca32dcfabb
children 4bdc07beeadb
comparison
equal deleted inserted replaced
20829:3d0d6410aecd 20830:9064044fd4f6
2653 2653
2654 if (name == '=') 2654 if (name == '=')
2655 { 2655 {
2656 char_u *p, *s; 2656 char_u *p, *s;
2657 2657
2658 p = vim_strnsave(str, (int)len); 2658 p = vim_strnsave(str, len);
2659 if (p == NULL) 2659 if (p == NULL)
2660 return; 2660 return;
2661 if (must_append && expr_line != NULL) 2661 if (must_append && expr_line != NULL)
2662 { 2662 {
2663 s = concat_str(expr_line, p); 2663 s = concat_str(expr_line, p);