raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a3510d5085a0616457f76de41d843cdf76dbbf7f

commit a3510d5085a0616457f76de41d843cdf76dbbf7f
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon May 3 17:02:33 2021 +0100

    evas - saver - tiff - change types to remove deprecated warnings
---
 src/modules/evas/image_savers/tiff/evas_image_save_tiff.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c 
b/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c
index 3e06b112b0..5d9253e39c 100644
--- a/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c
+++ b/src/modules/evas/image_savers/tiff/evas_image_save_tiff.c
@@ -14,11 +14,11 @@ static int
 save_image_tiff(RGBA_Image *im, const char *file, int compress EINA_UNUSED, 
int interlace EINA_UNUSED)
 {
    TIFF               *tif = NULL;
-   uint8              *buf = NULL;
+   uint8_t            *buf = NULL;
    DATA32              pixel;
    DATA32             *data;
-   uint32              x, y;
-   uint8               r, g, b, a = 0;
+   uint32_t            x, y;
+   uint8_t             r, g, b, a = 0;
    int                 i = 0;
    int                 has_alpha;
 
@@ -48,7 +48,7 @@ save_image_tiff(RGBA_Image *im, const char *file, int 
compress EINA_UNUSED, int
 
    if (has_alpha)
      {
-        uint16 extras[] = { EXTRASAMPLE_ASSOCALPHA };
+        uint16_t extras[] = { EXTRASAMPLE_ASSOCALPHA };
         TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 4);
         TIFFSetField(tif, TIFFTAG_EXTRASAMPLES, 1, extras);
      }
@@ -60,7 +60,7 @@ save_image_tiff(RGBA_Image *im, const char *file, int 
compress EINA_UNUSED, int
    TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8);
    TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, TIFFDefaultStripSize(tif, 0));
 
-   buf = (uint8 *) _TIFFmalloc(TIFFScanlineSize(tif));
+   buf = (uint8_t *) _TIFFmalloc(TIFFScanlineSize(tif));
    if (!buf)
      {
         TIFFClose(tif);

-- 


Reply via email to