mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1699: compile warning for xdiff/xutils on MS-Windows
Problem: compile warning for xdiff/xutils on MS-Windows Solution: add explicit type cast from size_t to long closes: #12531 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Mike Williams <mikew@globalgraphics.com>
This commit is contained in:
committed by
Christian Brabandt
parent
7fe1089904
commit
6c313bbb04
@@ -695,6 +695,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1699,
|
||||||
/**/
|
/**/
|
||||||
1698,
|
1698,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -442,7 +442,7 @@ void* xdl_alloc_grow_helper(void *p, long nr, long *alloc, size_t size)
|
|||||||
if (SIZE_MAX / size >= n)
|
if (SIZE_MAX / size >= n)
|
||||||
tmp = xdl_realloc(p, n * size);
|
tmp = xdl_realloc(p, n * size);
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
*alloc = n;
|
*alloc = (long)n;
|
||||||
} else {
|
} else {
|
||||||
xdl_free(p);
|
xdl_free(p);
|
||||||
*alloc = 0;
|
*alloc = 0;
|
||||||
|
Reference in New Issue
Block a user