summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/h52gifgentst.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-03-25 15:25:59 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-03-25 15:25:59 (GMT)
commit299deb64fb087c2b74649645769f8a873627fa31 (patch)
treee4e57ff508b5889b74e99455738c08e11d88bb91 /hl/tools/gif2h5/h52gifgentst.c
parent460b629e0384bd8780e0a47407d4b33a8e02b1f4 (diff)
downloadhdf5-299deb64fb087c2b74649645769f8a873627fa31.zip
hdf5-299deb64fb087c2b74649645769f8a873627fa31.tar.gz
hdf5-299deb64fb087c2b74649645769f8a873627fa31.tar.bz2
[svn-r26575] Removed compiler warning for hl/tools and hl/src.
HDF5-250 and HDF5-241 tested: h5committest
Diffstat (limited to 'hl/tools/gif2h5/h52gifgentst.c')
-rw-r--r--hl/tools/gif2h5/h52gifgentst.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hl/tools/gif2h5/h52gifgentst.c b/hl/tools/gif2h5/h52gifgentst.c
index ef38c3b..3433d0a 100644
--- a/hl/tools/gif2h5/h52gifgentst.c
+++ b/hl/tools/gif2h5/h52gifgentst.c
@@ -64,7 +64,7 @@ int main(void)
space = WIDTH*HEIGHT / PAL_ENTRIES;
for (i=0, j=0, n=0; i < WIDTH*HEIGHT; i++, j++ )
{
- buf[i] = n;
+ buf[i] = (unsigned char)n;
if ( j > space )
{
n++;
@@ -83,9 +83,9 @@ int main(void)
*/
for ( i=0, n=0; i<PAL_ENTRIES*3; i+=3, n++)
{
- pal[i] =n; /* red */
- pal[i+1]=0; /* green */
- pal[i+2]=255-n; /* blue */
+ pal[i] = (unsigned char)n; /* red */
+ pal[i+1] = (unsigned char)0; /* green */
+ pal[i+2] = (unsigned char)(255-n); /* blue */
}
/* make a palette */