diff src/xdiff/xpatience.c @ 14732:2b3ea3d42344 v8.1.0378

patch 8.1.0378: CI build failure commit https://github.com/vim/vim/commit/0d5f21c3dfaceed08b4cdb33a73eb16f680ff49b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 13 15:58:58 2018 +0200 patch 8.1.0378: CI build failure Problem: CI build failure. Solution: Include vim.h as ../vim.h. Fix compiler warning.
author Christian Brabandt <cb@256bit.org>
date Thu, 13 Sep 2018 16:00:07 +0200
parents 193471015e1a
children ef9f4be0bc5b
line wrap: on
line diff
--- a/src/xdiff/xpatience.c
+++ b/src/xdiff/xpatience.c
@@ -206,7 +206,7 @@ static int binary_search(struct entry **
  */
 static struct entry *find_longest_common_sequence(struct hashmap *map)
 {
-	struct entry **sequence = xdl_malloc(map->nr * sizeof(struct entry *));
+	struct entry **sequence = (struct entry **)xdl_malloc(map->nr * sizeof(struct entry *));
 	int longest = 0, i;
 	struct entry *entry;