Files
haikuports/media-libs/gd/patches/gd-2.3.3.patchset
2021-11-08 12:46:41 +01:00

29 lines
732 B
Plaintext

From 4cb177664a888a11039057f8122b934fe7af062c Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 8 Nov 2021 12:43:34 +0100
Subject: use actuall tiff types in createFromTiffRgba
diff --git a/src/gd_tiff.c b/src/gd_tiff.c
index 7f72b61..3d826b1 100644
--- a/src/gd_tiff.c
+++ b/src/gd_tiff.c
@@ -761,11 +761,11 @@ static int createFromTiffRgba(TIFF * tif, gdImagePtr im)
int color;
int width = im->sx;
int height = im->sy;
- uint32_t *buffer;
- uint32_t rgba;
+ uint32 *buffer;
+ uint32 rgba;
int success;
- buffer = (uint32_t *) gdCalloc(sizeof(uint32_t), width * height);
+ buffer = (uint32 *) gdCalloc(sizeof(uint32), width * height);
if (!buffer) {
return GD_FAILURE;
}
--
2.30.2