summaryrefslogtreecommitdiffstats
path: root/src/H5Tprecis.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Tprecis.c')
-rw-r--r--src/H5Tprecis.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/H5Tprecis.c b/src/H5Tprecis.c
index 9728172..b7a37d3 100644
--- a/src/H5Tprecis.c
+++ b/src/H5Tprecis.c
@@ -245,12 +245,17 @@ H5T_set_precision(const H5T_t *dt, size_t prec)
* first when decreasing the precision of a floating point
* type.
*/
+ /*printf("\nsign: %d ", dt->shared->u.atomic.u.f.sign);
+ printf("epos: %d ", dt->shared->u.atomic.u.f.epos);
+ printf("esize: %d ", dt->shared->u.atomic.u.f.esize);
+ printf("mpos: %d ", dt->shared->u.atomic.u.f.mpos);
+ printf("msize: %d ", dt->shared->u.atomic.u.f.msize);
+ printf("prec: %d\n", prec); */
if (dt->shared->u.atomic.u.f.sign >= prec ||
dt->shared->u.atomic.u.f.epos + dt->shared->u.atomic.u.f.esize > prec ||
dt->shared->u.atomic.u.f.mpos + dt->shared->u.atomic.u.f.msize > prec)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "adjust sign, mantissa, and exponent fields first")
- break;
-
+ break;
default:
HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, FAIL, "operation not defined for datatype class")
} /* end switch */ /*lint !e788 All appropriate cases are covered */