]> git.imager.perl.org - imager.git/blobdiff - fills.c
correct cast
[imager.git] / fills.c
diff --git a/fills.c b/fills.c
index e386d8a4dac8c6c23620ca158b4ccbeb6c1e579c..4298b64303e1b1ba6c49f8a2954f7b465d55bdc7 100644 (file)
--- a/fills.c
+++ b/fills.c
@@ -956,7 +956,7 @@ fill_opacity(i_fill_t *fill, int x, int y, int width, int channels,
 static void 
 fill_opacityf(i_fill_t *fill, int x, int y, int width, int channels,
            i_fcolor *data) {
-  struct i_fill_opacity_t *f = (struct i_fill_alpha_t *)fill;
+  struct i_fill_opacity_t *f = (struct i_fill_opacity_t *)fill;
   int alpha_chan = channels-1; /* channels is always 2 or 4 */
   i_fcolor *datap = data;