diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-08 16:19:22 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-08 16:19:22 +0000 |
commit | 04935fb17e5f0f66b82cf4546b9752d3d1fa650e (patch) | |
tree | d80c59d316f2f17a27a6541a8eb40d01cc49eca8 /src/hardcopy.c | |
parent | 143367256836b0f69881dc0c65ff165ae091dbc5 (diff) |
patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r-- | src/hardcopy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c index 33c72b7112..c99dc5fa35 100644 --- a/src/hardcopy.c +++ b/src/hardcopy.c @@ -1650,7 +1650,7 @@ prt_flush_buffer(void) prt_write_string("s\n"); ga_clear(&prt_ps_buffer); - ga_init2(&prt_ps_buffer, (int)sizeof(char), prt_bufsiz); + ga_init2(&prt_ps_buffer, sizeof(char), prt_bufsiz); } } @@ -2649,7 +2649,7 @@ mch_print_init( prt_bufsiz = psettings->chars_per_line; if (prt_out_mbyte) prt_bufsiz *= 2; - ga_init2(&prt_ps_buffer, (int)sizeof(char), prt_bufsiz); + ga_init2(&prt_ps_buffer, sizeof(char), prt_bufsiz); prt_page_num = 0; |