comparison src/version.c @ 14280:bdab22732907 v8.1.0156

patch 8.1.0156: MS-Windows compiler warning commit https://github.com/vim/vim/commit/5d2f40792e47a48fc56efafd30b68660a42184a7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 6 22:52:02 2018 +0200 patch 8.1.0156: MS-Windows compiler warning Problem: MS-Windows compiler warning. Solution: Add a type cast. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Fri, 06 Jul 2018 23:00:06 +0200
parents e92964e4e58e
children 89dcceaa5c22
comparison
equal deleted inserted replaced
14279:304b113a655f 14280:bdab22732907
59 size_t len = strlen(msg) 59 size_t len = strlen(msg)
60 + strlen(VIM_VERSION_LONG_ONLY) 60 + strlen(VIM_VERSION_LONG_ONLY)
61 + strlen(VIM_VERSION_DATE_ONLY) 61 + strlen(VIM_VERSION_DATE_ONLY)
62 + strlen(date_time); 62 + strlen(date_time);
63 63
64 longVersion = (char *)alloc(len); 64 longVersion = (char *)alloc((unsigned)len);
65 if (longVersion == NULL) 65 if (longVersion == NULL)
66 longVersion = VIM_VERSION_LONG; 66 longVersion = VIM_VERSION_LONG;
67 else 67 else
68 vim_snprintf(longVersion, len, msg, 68 vim_snprintf(longVersion, len, msg,
69 VIM_VERSION_LONG_ONLY, VIM_VERSION_DATE_ONLY, date_time); 69 VIM_VERSION_LONG_ONLY, VIM_VERSION_DATE_ONLY, date_time);
787 NULL 787 NULL
788 }; 788 };
789 789
790 static int included_patches[] = 790 static int included_patches[] =
791 { /* Add new patch number below this line */ 791 { /* Add new patch number below this line */
792 /**/
793 156,
792 /**/ 794 /**/
793 155, 795 155,
794 /**/ 796 /**/
795 154, 797 154,
796 /**/ 798 /**/