summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-22 18:55:21 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-22 18:55:21 (GMT)
commit9cc63d81fb1f311e849e2d098d31e6cfd4f549b5 (patch)
tree2c879ccd1ecec9e0a7cb88e55624052841e385f5 /tools/test
parent04a2d20bba020444686642d593e1be0529113d5d (diff)
downloadhdf5-9cc63d81fb1f311e849e2d098d31e6cfd4f549b5.zip
hdf5-9cc63d81fb1f311e849e2d098d31e6cfd4f549b5.tar.gz
hdf5-9cc63d81fb1f311e849e2d098d31e6cfd4f549b5.tar.bz2
fix float type cmp warning
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/perform/pio_perf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/test/perform/pio_perf.c b/tools/test/perform/pio_perf.c
index 5977731..74855cb 100644
--- a/tools/test/perform/pio_perf.c
+++ b/tools/test/perform/pio_perf.c
@@ -59,6 +59,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include "H5private.h"
#include "hdf5.h"
#ifdef H5_HAVE_PARALLEL
@@ -82,6 +83,7 @@
/* report 0.0 in case t is zero too */
#define MB_PER_SEC(bytes,t) (((t)==0.0) ? 0.0 : ((((double)bytes) / ONE_MB) / (t)))
+#define MB_PER_SEC(bytes,t) (H5_DBL_ABS_EQUAL((t), 0.0) ? 0.0 : ((((double)bytes) / ONE_MB) / (t)))
#ifndef TRUE
#define TRUE 1