From 45eaacc939f55de69a9f46f4a44edad33d3a0c81 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Mon, 30 Aug 2021 16:06:53 +0200 Subject: [PATCH] Convert deprecated uint32 to uint32_t. Change-Id: I057296a7ea90c3eeb9eaf251e08352a8491a591b --- imageio/tiffdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imageio/tiffdec.c b/imageio/tiffdec.c index 1c186b35..a9cb9ee6 100644 --- a/imageio/tiffdec.c +++ b/imageio/tiffdec.c @@ -46,7 +46,7 @@ static int ExtractMetadataFromTIFF(TIFF* const tif, Metadata* const metadata) { (MetadataPayload*)((uint8_t*)metadata + kTIFFMetadataMap[i].storage_offset); void* tag_data; - uint32 tag_data_len; + uint32_t tag_data_len; if (TIFFGetField(tif, kTIFFMetadataMap[i].tag, &tag_data_len, &tag_data) && !MetadataCopy((const char*)tag_data, tag_data_len, payload)) { @@ -230,7 +230,7 @@ int ReadTIFF(const uint8_t* const data, size_t data_size, alloc_size = (int64_t)(stride * image_height); if (alloc_size < 0 || alloc_size != (tsize_t)alloc_size) goto End; - raster = (uint32*)_TIFFmalloc((tsize_t)alloc_size); + raster = (uint32_t*)_TIFFmalloc((tsize_t)alloc_size); if (raster != NULL) { if (TIFFReadRGBAImageOriented(tif, image_width, image_height, raster, ORIENTATION_TOPLEFT, 1)) {