summaryrefslogtreecommitdiffstats
path: root/src/crypt.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-25 20:21:28 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-25 20:21:28 +0200
commit51e14387f120392b74b84408cafec33942337a05 (patch)
tree43d2b2077c404671de3f7fdfc5bc90930aa53d09 /src/crypt.c
parent682725c1415f50681877df60257115a966e2a3d4 (diff)
patch 8.1.1393: unnecessary type castsv8.1.1393
Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
Diffstat (limited to 'src/crypt.c')
-rw-r--r--src/crypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypt.c b/src/crypt.c
index 6eb3e21faf..2846d28103 100644
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -254,7 +254,7 @@ crypt_create(
char_u *seed,
int seed_len)
{
- cryptstate_T *state = (cryptstate_T *)alloc((int)sizeof(cryptstate_T));
+ cryptstate_T *state = (cryptstate_T *)alloc(sizeof(cryptstate_T));
if (state == NULL)
return state;
@@ -407,7 +407,7 @@ crypt_encode_alloc(
/* Not buffering, just return EOF. */
return (long)len;
- *newptr = alloc((long)len);
+ *newptr = alloc(len);
if (*newptr == NULL)
return -1;
method->encode_fn(state, from, len, *newptr);