patch 8.1.1384: using "int" for alloc() often results in compiler warnings
Problem: Using "int" for alloc() often results in compiler warnings.
Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim
only works with 32 bit ints anyway.
diff --git a/src/version.c b/src/version.c
index b774f3d..678d7e8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -61,7 +61,7 @@
+ strlen(VIM_VERSION_DATE_ONLY)
+ strlen(date_time);
- longVersion = (char *)alloc((unsigned)len);
+ longVersion = (char *)alloc(len);
if (longVersion == NULL)
longVersion = VIM_VERSION_LONG;
else
@@ -768,6 +768,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1384,
+/**/
1383,
/**/
1382,