diff options
author | Carl Worth <cworth@cworth.org> | 2006-12-14 04:14:24 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-12-14 07:58:01 -0800 |
commit | 305cbd8e71a2d21a2c71ed2c382daa5bfcec3992 (patch) | |
tree | b0df498129ee4715523614d6cd4841f796e8c81b | |
parent | f175b23559f3ba759d222538fd28922c1cbe2196 (diff) |
pdiff: Remove casts since we're out of the land of X++ where void* is stupidly broken
-rw-r--r-- | test/pdiff/lpyramid.c | 6 |
1 files 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; i<MAX_PYR_LEVELS; i++) { - /* XXX: Remove stupid cast after finishing port to C */ - pyramid->levels[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); |