From 305cbd8e71a2d21a2c71ed2c382daa5bfcec3992 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 14 Dec 2006 04:14:24 -0800 Subject: [PATCH] pdiff: Remove casts since we're out of the land of X++ where void* is stupidly broken --- test/pdiff/lpyramid.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/pdiff/lpyramid.c b/test/pdiff/lpyramid.c index 92915ab01..de72d8ec3 100644 --- a/test/pdiff/lpyramid.c +++ b/test/pdiff/lpyramid.c @@ -65,8 +65,7 @@ lpyramid_create (float *image, int width, int height) lpyramid_t *pyramid; int i; - /* XXX: Remove stupid cast after finishing port to C */ - pyramid = (lpyramid_t *) malloc (sizeof (lpyramid_t)); + pyramid = malloc (sizeof (lpyramid_t)); if (pyramid == NULL) { fprintf (stderr, "Out of memory.\n"); exit (1); @@ -77,8 +76,7 @@ lpyramid_create (float *image, int width, int height) /* Make the Laplacian pyramid by successively * copying the earlier levels and blurring them */ for (i=0; ilevels[i] = (float *) malloc (width * height * sizeof (float)); + pyramid->levels[i] = malloc (width * height * sizeof (float)); if (pyramid->levels[i] == NULL) { fprintf (stderr, "Out of memory.\n"); exit (1);