[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 5e1743b: Library (tiff.h): corrected usage of
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 5e1743b: Library (tiff.h): corrected usage of uint32 with uint32_t |
Date: |
Wed, 28 Apr 2021 22:53:12 -0400 (EDT) |
branch: master
commit 5e1743b8ebd783396c3a81015a9c9665f9e843aa
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Library (tiff.h): corrected usage of uint32 with uint32_t
Until now, in two instances within the 'lib/tiff.c' library, we were using
the 'uint32' type (which is not the standard and not guaranteed to work on
all systems)! This happened because these functions started-off as a
copy/pasting from the example codes in the TIFF library. I noticed these
with compiler warnings in a recent build.
With this commit, they have been changed to the standard 'uint32_t'.
---
lib/tiff.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/tiff.c b/lib/tiff.c
index c651b2f..219189c 100644
--- a/lib/tiff.c
+++ b/lib/tiff.c
@@ -292,7 +292,7 @@ tiff_read_contig_strip_data(TIFF *tif, char *filename,
size_t dir,
unsigned char *buf;
uint32_t row, rowsperstrip = (uint32_t)-1;
size_t nrow=0, scanline=TIFFScanlineSize(tif);
- uint32 h=out->ndim==2?out->dsize[0]:out->dsize[1];
+ uint32_t h=out->ndim==2?out->dsize[0]:out->dsize[1];
/* Allocate the buffer. */
errno=0;
@@ -342,7 +342,7 @@ tiff_read_separate_strip_data(TIFF* tif, char *filename,
size_t dir,
uint32_t rowsperstrip=(uint32_t)-1;
size_t nrow=0, scanline=TIFFScanlineSize(tif);
size_t ostart=0, numch=gal_list_data_number(out);
- uint32 row, h=out->ndim==2?out->dsize[0]:out->dsize[1];
+ uint32_t row, h=out->ndim==2?out->dsize[0]:out->dsize[1];
/* Allocate the buffer. */
errno=0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 5e1743b: Library (tiff.h): corrected usage of uint32 with uint32_t,
Mohammad Akhlaghi <=