diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-25 20:21:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-25 20:21:28 +0200 |
commit | 51e14387f120392b74b84408cafec33942337a05 (patch) | |
tree | 43d2b2077c404671de3f7fdfc5bc90930aa53d09 /src/message.c | |
parent | 682725c1415f50681877df60257115a966e2a3d4 (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/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.c b/src/message.c index f1801c3269..489edc32db 100644 --- a/src/message.c +++ b/src/message.c @@ -875,7 +875,7 @@ add_msg_hist( (void)delete_first_msg(); /* allocate an entry and add the message at the end of the history */ - p = (struct msg_hist *)alloc((int)sizeof(struct msg_hist)); + p = (struct msg_hist *)alloc(sizeof(struct msg_hist)); if (p != NULL) { if (len < 0) @@ -2360,7 +2360,7 @@ store_sb_text( if (s > *sb_str) { - mp = (msgchunk_T *)alloc((int)(sizeof(msgchunk_T) + (s - *sb_str))); + mp = (msgchunk_T *)alloc(sizeof(msgchunk_T) + (s - *sb_str)); if (mp != NULL) { mp->sb_eol = finish; |