summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/hdfgifwr.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-03-27 15:16:25 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-03-27 15:16:25 (GMT)
commitde11710fdad2481f158825581116dde77fc85134 (patch)
tree20778ebdf3185b6f36d46f3d454f92b01d0aecdd /hl/tools/gif2h5/hdfgifwr.c
parent6abce0d37448084b4105e64c2aa059679817e85b (diff)
downloadhdf5-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/hdfgifwr.c')
-rw-r--r--hl/tools/gif2h5/hdfgifwr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hl/tools/gif2h5/hdfgifwr.c b/hl/tools/gif2h5/hdfgifwr.c
index d828226..4c52f4c 100644
--- a/hl/tools/gif2h5/hdfgifwr.c
+++ b/hl/tools/gif2h5/hdfgifwr.c
@@ -270,7 +270,7 @@ nomatch:
ent = c;
if (free_ent < maxmaxcode) {
- CodeTabOf (i) = free_ent++; /* code -> hashtable */
+ CodeTabOf (i) = (unsigned short)free_ent++; /* code -> hashtable */
HashTabOf (i) = fcode;
} else {
cl_block();
@@ -313,9 +313,9 @@ output(int code)
cur_accum &= masks[cur_bits];
if (cur_bits > 0)
- cur_accum |= ((long)code << cur_bits);
+ cur_accum |= (unsigned long)((long)code << cur_bits);
else
- cur_accum = code;
+ cur_accum = (unsigned long)code;
cur_bits += n_bits;
@@ -437,7 +437,7 @@ static char accum[ 256 ];
static void
char_out(int c)
{
- accum[ a_count++ ] = c;
+ accum[ a_count++ ] = (char)c;
if (a_count >= 254)
flush_char();