summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.h
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-04-04 21:54:48 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-04-04 21:54:48 (GMT)
commit12f01d9cd48c8c49b2ad2e5e0d0a0f35e2e598a8 (patch)
tree0fc3e770c28b5b58ad8bbefb9bdb614d2d0ea5c7 /tools/lib/h5diff.h
parentcfa54ffdc131709cce9d92580a3e3c1fb417cac4 (diff)
downloadhdf5-12f01d9cd48c8c49b2ad2e5e0d0a0f35e2e598a8.zip
hdf5-12f01d9cd48c8c49b2ad2e5e0d0a0f35e2e598a8.tar.gz
hdf5-12f01d9cd48c8c49b2ad2e5e0d0a0f35e2e598a8.tar.bz2
[svn-r12199] Purpose:
bug fix Description: the percent error calculation in h5diff using double precision floating point were causing different results on the release and debug versions of Visual Studio version 6, due to a compiler bug Solution: used single precision (float) Platforms tested: windows linux solaris AIX Misc. update:
Diffstat (limited to 'tools/lib/h5diff.h')
-rw-r--r--tools/lib/h5diff.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/h5diff.h b/tools/lib/h5diff.h
index c8536b4..7320a63 100644
--- a/tools/lib/h5diff.h
+++ b/tools/lib/h5diff.h
@@ -28,9 +28,9 @@ typedef struct {
int m_report; /* report mode: print the data */
int m_verbose; /* verbose mode: print the data, list of objcets, warnings */
int d; /* delta, absolute value to compare */
- double delta; /* delta value */
+ float delta; /* delta value */
int p; /* relative error to compare*/
- double percent; /* relative error value */
+ float percent; /* relative error value */
int n; /* count, compare up to count */
hsize_t count; /* count value */
int err_stat; /* an error ocurred (1, error, 0, no error) */