summaryrefslogtreecommitdiffstats
path: root/tools/misc/talign.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-12-11 19:14:43 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-12-11 19:14:43 (GMT)
commitaa4fc58ac985ba354525056428d79f918f95d119 (patch)
treec6526fa0d55e8e9cbe365fedd0a431e28c67043c /tools/misc/talign.c
parentf53c939bd05b44d0cfc520f4de870d139ab1e61f (diff)
downloadhdf5-aa4fc58ac985ba354525056428d79f918f95d119.zip
hdf5-aa4fc58ac985ba354525056428d79f918f95d119.tar.gz
hdf5-aa4fc58ac985ba354525056428d79f918f95d119.tar.bz2
[svn-r28599] Normalization of tools with revise_chunks.
Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0 x86_64) gcc 5.2.1 serial only, autotools and CMake (3.3.2)
Diffstat (limited to 'tools/misc/talign.c')
-rw-r--r--tools/misc/talign.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/misc/talign.c b/tools/misc/talign.c
index 7eb4c50..be373e7 100644
--- a/tools/misc/talign.c
+++ b/tools/misc/talign.c
@@ -49,7 +49,7 @@ int main(void)
char string5[5];
float fok[2] = {1234.0f, 2341.0f};
float fnok[2] = {5678.0f, 6785.0f};
- float *fptr;
+ float *fptr = NULL;
char *data = NULL;
@@ -143,8 +143,10 @@ out:
if(error < 0) {
result = 1;
puts("*FAILED - HDF5 library error*");
- } else if(fok[0] != fptr[0] || fok[1] != fptr[1]
- || fnok[0] != fptr[2] || fnok[1] != fptr[3]) {
+ } else if(!(H5_FLT_ABS_EQUAL(fok[0], fptr[0]))
+ || !(H5_FLT_ABS_EQUAL(fok[1], fptr[1]))
+ || !(H5_FLT_ABS_EQUAL(fnok[0], fptr[2]))
+ || !(H5_FLT_ABS_EQUAL(fnok[1], fptr[3]))) {
char *mname;
result = 1;