summaryrefslogtreecommitdiffstats
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-12 22:59:11 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-12 22:59:11 +0200
commit71ccd03ee8a43b20000214a9c99dcc90f039edca (patch)
treeb5e89de8afbba2a8981d68b578514df046cb4aad /src/ex_eval.c
parent722e505d1a55dfde5ab62241d10da91d2e10c3c1 (diff)
patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967
Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index 68207cbe7c..a13f844b14 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -439,7 +439,7 @@ get_exception_string(
{
cmdlen = (int)STRLEN(cmdname);
ret = (char *)vim_strnsave((char_u *)"Vim(",
- 4 + cmdlen + 2 + (int)STRLEN(mesg));
+ 4 + cmdlen + 2 + STRLEN(mesg));
if (ret == NULL)
return ret;
STRCPY(&ret[4], cmdname);
@@ -448,7 +448,7 @@ get_exception_string(
}
else
{
- ret = (char *)vim_strnsave((char_u *)"Vim:", 4 + (int)STRLEN(mesg));
+ ret = (char *)vim_strnsave((char_u *)"Vim:", 4 + STRLEN(mesg));
if (ret == NULL)
return ret;
val = ret + 4;
@@ -806,7 +806,7 @@ report_pending(int action, int pending, void *value)
if (pending & CSTP_THROW)
{
vim_snprintf((char *)IObuff, IOSIZE, mesg, _("Exception"));
- mesg = (char *)vim_strnsave(IObuff, (int)STRLEN(IObuff) + 4);
+ mesg = (char *)vim_strnsave(IObuff, STRLEN(IObuff) + 4);
STRCAT(mesg, ": %s");
s = (char *)((except_T *)value)->value;
}