mercurial/mpatch.c
changeset 1978 10606ee61107
parent 1746 299c3e26ee45
child 2048 8f9660c568b8
child 2078 441ea218414e
--- a/mercurial/mpatch.c
+++ b/mercurial/mpatch.c
@@ -58,9 +58,9 @@ static struct flist *lalloc(int size)
 {
 	struct flist *a = NULL;
 
-	a = malloc(sizeof(struct flist));
+	a = (struct flist *)malloc(sizeof(struct flist));
 	if (a) {
-		a->base = malloc(sizeof(struct frag) * size);
+		a->base = (struct frag *)malloc(sizeof(struct frag) * size);
 		if (!a->base) {
 			free(a);
 			a = NULL;