summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2016-10-06 17:45:42 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2016-10-06 17:45:42 (GMT)
commit43ec23616697ce0ea3f99e40900fec55fe9107ef (patch)
treed45ab06c93c8cd045e95479593a19dd10cadf4e9 /src
parente1c4ec3d541eecda78b3afcb1a0fa071c4b52afa (diff)
downloadhdf5-43ec23616697ce0ea3f99e40900fec55fe9107ef.zip
hdf5-43ec23616697ce0ea3f99e40900fec55fe9107ef.tar.gz
hdf5-43ec23616697ce0ea3f99e40900fec55fe9107ef.tar.bz2
Fix mistakes in porting TALOS-177 fix to 1.8.
Diffstat (limited to 'src')
-rw-r--r--src/H5Znbit.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/H5Znbit.c b/src/H5Znbit.c
index 7a689f9..ddcf8fd 100644
--- a/src/H5Znbit.c
+++ b/src/H5Znbit.c
@@ -1128,7 +1128,7 @@ H5Z__nbit_decompress_one_compound(unsigned char *data, size_t data_offset,
member_class = parms[parms_index++];
/* Check for overflow */
- member_size = parms[*parms_index];
+ member_size = parms[parms_index];
used_size += member_size;
if(used_size > size)
HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "compound member offset overflowed compound size")
@@ -1173,9 +1173,8 @@ done:
FUNC_LEAVE_NOAPI(ret_value)
}
-<<<<<<< HEAD
-static void
-H5Z_nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buffer,
+static herr_t
+H5Z__nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buffer,
const unsigned parms[])
{
/* i: index of data, j: index of buffer,
@@ -1214,7 +1213,7 @@ H5Z_nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buffe
size = parms[4];
parms_index = 4;
for(i = 0; i < d_nelmts; i++) {
- if(H5Z_nbit_decompress_one_array(data, i*size, buffer, &j, &buf_len, parms) < 0)
+ if(H5Z__nbit_decompress_one_array(data, i*size, buffer, &j, &buf_len, parms) < 0)
HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress array")
parms_index = 4;
}
@@ -1223,7 +1222,7 @@ H5Z_nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buffe
size = parms[4];
parms_index = 4;
for(i = 0; i < d_nelmts; i++) {
- if(H5Z_nbit_decompress_one_compound(data, i*size, buffer, &j, &buf_len, parms) < 0)
+ if(H5Z__nbit_decompress_one_compound(data, i*size, buffer, &j, &buf_len, parms) < 0)
HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress compound")
parms_index = 4;
}