From e39f5dc55928fb295003df4bebab287fe4699b31 Mon Sep 17 00:00:00 2001 From: "Robert E. McGrath" Date: Tue, 3 Aug 2004 17:07:12 -0500 Subject: [svn-r9004] Purpose: Fix to feature added yesterday Description: Needed additional check on the SZIP bits per pixel parameter Solution: if (precision > 24 && precision < 31) precision = 32 if (precision > 32 && precision < 64) precision = 64 Platforms tested: arabica,verbena,hirdls Misc. update: --- src/H5Zszip.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/H5Zszip.c b/src/H5Zszip.c index c999ba8..f07303f 100644 --- a/src/H5Zszip.c +++ b/src/H5Zszip.c @@ -168,6 +168,13 @@ H5Z_set_local_szip(hid_t dcpl_id, hid_t type_id, hid_t space_id) dtype_precision=dtype_size; } } + if (dtype_precision>24) { + if (dtype_precision <= 32) { + dtype_precision=32; + } else if ( dtype_precision <= 64) { + dtype_precision=64; + } + } /* Set "local" parameter for this dataset's "bits-per-pixel" */ cd_values[H5Z_SZIP_PARM_BPP]=dtype_precision; -- cgit v0.12