changeset 1978 | 10606ee61107 |
parent 1746 | 299c3e26ee45 |
child 2048 | 8f9660c568b8 |
child 2078 | 441ea218414e |
--- a/mercurial/mpatch.c Sun Mar 19 21:26:58 2006 +0100 +++ b/mercurial/mpatch.c Mon Mar 20 08:46:29 2006 +0100 @@ -58,9 +58,9 @@ { 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;