comparison src/viminfo.c @ 27028:c9474ae175f4 v8.2.4043

patch 8.2.4043: using int for second argument of ga_init2() Commit: https://github.com/vim/vim/commit/04935fb17e5f0f66b82cf4546b9752d3d1fa650e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 8 16:19:22 2022 +0000 patch 8.2.4043: using int for second argument of ga_init2() Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jan 2022 17:30:04 +0100
parents eebbcc83fb75
children fb4c30606b4a
comparison
equal deleted inserted replaced
27027:167e35b85720 27028:c9474ae175f4
2910 2910
2911 if ((vir.vir_line = alloc(LSIZE)) == NULL) 2911 if ((vir.vir_line = alloc(LSIZE)) == NULL)
2912 return; 2912 return;
2913 vir.vir_fd = fp_in; 2913 vir.vir_fd = fp_in;
2914 vir.vir_conv.vc_type = CONV_NONE; 2914 vir.vir_conv.vc_type = CONV_NONE;
2915 ga_init2(&vir.vir_barlines, (int)sizeof(char_u *), 100); 2915 ga_init2(&vir.vir_barlines, sizeof(char_u *), 100);
2916 vir.vir_version = -1; 2916 vir.vir_version = -1;
2917 2917
2918 if (fp_in != NULL) 2918 if (fp_in != NULL)
2919 { 2919 {
2920 if (flags & VIF_WANT_INFO) 2920 if (flags & VIF_WANT_INFO)