mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-03 13:40:31 +01:00
pdiff: Remove casts since we're out of the land of X++ where void* is stupidly broken
This commit is contained in:
parent
f175b23559
commit
305cbd8e71
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue