summaryrefslogtreecommitdiffstats
path: root/tools/test
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-22 18:55:21 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:51 (GMT)
commit1c226ac077b078445cd52ba2d46968fc9ecb0c65 (patch)
treefe5ddf1f9012999be59572edad6dc7302bbc39be /tools/test
parent8d5ae4f460d976a0f3e31b0adbe2026c80510f17 (diff)
downloadhdf5-1c226ac077b078445cd52ba2d46968fc9ecb0c65.zip
hdf5-1c226ac077b078445cd52ba2d46968fc9ecb0c65.tar.gz
hdf5-1c226ac077b078445cd52ba2d46968fc9ecb0c65.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