diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-03-27 15:16:25 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-03-27 15:16:25 (GMT) |
commit | de11710fdad2481f158825581116dde77fc85134 (patch) | |
tree | 20778ebdf3185b6f36d46f3d454f92b01d0aecdd /hl/tools/gif2h5/hdf2gif.c | |
parent | 6abce0d37448084b4105e64c2aa059679817e85b (diff) | |
download | hdf5-de11710fdad2481f158825581116dde77fc85134.zip hdf5-de11710fdad2481f158825581116dde77fc85134.tar.gz hdf5-de11710fdad2481f158825581116dde77fc85134.tar.bz2 |
[svn-r26615] merged r26575 from the trunk into the branch.
Tested: h5committest
Diffstat (limited to 'hl/tools/gif2h5/hdf2gif.c')
-rw-r--r-- | hl/tools/gif2h5/hdf2gif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hl/tools/gif2h5/hdf2gif.c b/hl/tools/gif2h5/hdf2gif.c index 090d657..fe79975 100644 --- a/hl/tools/gif2h5/hdf2gif.c +++ b/hl/tools/gif2h5/hdf2gif.c @@ -194,9 +194,9 @@ int main(int argc , char **argv) numcols = 256; for (i = 0 ; i < numcols ; i++) { - Red[i] = 255 - i; - Green[i] = 255 - i; - Blue[i] = 255 - i; + Red[i] = (BYTE)(255 - i); + Green[i] = (BYTE)(255 - i); + Blue[i] = (BYTE)(255 - i); } } else @@ -229,7 +229,7 @@ int main(int argc , char **argv) if (j==i) { /* wasn't found */ - pc2nc[i] = nc; + pc2nc[i] = (BYTE)nc; r1[nc] = Red[i]; g1[nc] = Green[i]; b1[nc] = Blue[i]; |