summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
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/h5diff
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/h5diff')
-rw-r--r--tools/h5diff/h5diff_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c
index 3ba45c3..6a24ab6 100644
--- a/tools/h5diff/h5diff_common.c
+++ b/tools/h5diff/h5diff_common.c
@@ -96,7 +96,7 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
printf("<-d %s> is not a valid option\n", argv[i+1] );
usage();
}
- options->delta = atof(argv[i+1]);
+ options->delta = (float) atof(argv[i+1]);
i++; /* go to next */
}
else
@@ -114,7 +114,7 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
printf("<-p %s> is not a valid option\n", argv[i+1] );
usage();
}
- options->percent = atof(argv[i+1]);
+ options->percent = (float) atof(argv[i+1]);
i++; /* go to next */
}
else