diff options
author | Christian C <cc@localhost> | 2025-03-23 15:46:37 -0700 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-23 15:46:37 -0700 |
commit | ddafa2764240436557aa54484e00f64cc11ec001 (patch) | |
tree | e95d8c21c20cdbe7ad5204a73b16246f4f938701 /lib/data | |
parent | 3cfdec959d9ae00d6b44391cc8daec5ded831295 (diff) |
Shorter type name
Diffstat (limited to 'lib/data')
-rw-r--r-- | lib/data/image_types.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/data/image_types.c b/lib/data/image_types.c index 74c7ec4..b7be149 100644 --- a/lib/data/image_types.c +++ b/lib/data/image_types.c @@ -19,8 +19,8 @@ ImageMask* create_image_mask(size_t width, size_t height) ImageMask* ip = (ImageMask*)malloc(sizeof(ImageMask)); ip->width = width; ip->height = height; - ip->image = (ImageMaskData_t**)malloc(sizeof(ImageMaskData_t*) * ip->height); - ImageMaskData_t* image_data = calloc(width*height, sizeof(ImageMaskData_t)); + ip->image = (MaskData_t**)malloc(sizeof(MaskData_t*) * ip->height); + MaskData_t* image_data = calloc(width*height, sizeof(MaskData_t)); for (size_t y = 0; y < height; y++) { ip->image[y] = &image_data[y*width]; } |