summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Williams <mikew@globalgraphics.com>2023-08-12 20:47:43 +0200
committerChristian Brabandt <cb@256bit.org>2023-08-12 20:50:55 +0200
commit6c313bbb043745a60a7ee30a78edb907260b764a (patch)
treeb0cfae01e8b7cc8f50fdc0a838581f344ca0a738
parent7fe108990423535fa7cb804deae49d64831e25a9 (diff)
patch 9.0.1699: compile warning for xdiff/xutils on MS-Windowsv9.0.1699
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>
-rw-r--r--src/version.c2
-rw-r--r--src/xdiff/xutils.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index 16ebc614fc..b09052c1d7 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1699,
+/**/
1698,
/**/
1697,
diff --git a/src/xdiff/xutils.c b/src/xdiff/xutils.c
index a4370e610b..fde0afb480 100644
--- a/src/xdiff/xutils.c
+++ b/src/xdiff/xutils.c
@@ -442,7 +442,7 @@ void* xdl_alloc_grow_helper(void *p, long nr, long *alloc, size_t size)
if (SIZE_MAX / size >= n)
tmp = xdl_realloc(p, n * size);
if (tmp) {
- *alloc = n;
+ *alloc = (long)n;
} else {
xdl_free(p);
*alloc = 0;