comparison src/evalvars.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 9faab49c880f
children 0600ab7b9f09
comparison
equal deleted inserted replaced
20829:3d0d6410aecd 20830:9064044fd4f6
2532 vim_strncpy(buffer, name, len); 2532 vim_strncpy(buffer, name, len);
2533 p = buffer; 2533 p = buffer;
2534 } 2534 }
2535 else 2535 else
2536 { 2536 {
2537 p = vim_strnsave(name, (int)len); 2537 p = vim_strnsave(name, len);
2538 if (p == NULL) 2538 if (p == NULL)
2539 return NULL; 2539 return NULL;
2540 } 2540 }
2541 2541
2542 hi = hash_find(ht, p); 2542 hi = hash_find(ht, p);