summaryrefslogtreecommitdiffstats
path: root/tools/src
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-08-25 23:40:02 (GMT)
committerGitHub <noreply@github.com>2021-08-25 23:40:02 (GMT)
commit56dcd1badcc2b7ffacfbc606bda40c86c4812aee (patch)
treef1e7ee90d008fd6f839a7806b14d9a631a0b1184 /tools/src
parent6b1adb2ec97a529854613e091270f5b3cb37bc22 (diff)
downloadhdf5-56dcd1badcc2b7ffacfbc606bda40c86c4812aee.zip
hdf5-56dcd1badcc2b7ffacfbc606bda40c86c4812aee.tar.gz
hdf5-56dcd1badcc2b7ffacfbc606bda40c86c4812aee.tar.bz2
Merge other tools tidy changes (#961)
Diffstat (limited to 'tools/src')
-rw-r--r--tools/src/h5perf/sio_perf.c2
-rw-r--r--tools/src/misc/h5clear.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/h5perf/sio_perf.c b/tools/src/h5perf/sio_perf.c
index 7bd58d8..1b200b0 100644
--- a/tools/src/h5perf/sio_perf.c
+++ b/tools/src/h5perf/sio_perf.c
@@ -65,7 +65,7 @@
#define SIO_HDF5 0x4
/* report 0.0 in case t is zero too */
-#define MB_PER_SEC(bytes, t) (H5_DBL_ABS_EQUAL(t, 0.0) ? 0.0 : ((((double)bytes) / (double)ONE_MB) / (t)))
+#define MB_PER_SEC(bytes, t) (H5_DBL_ABS_EQUAL(t, 0.0) ? 0.0 : ((((double)(bytes)) / (double)ONE_MB) / (t)))
#ifndef TRUE
#define TRUE 1
diff --git a/tools/src/misc/h5clear.c b/tools/src/misc/h5clear.c
index 008dae3..face2f0 100644
--- a/tools/src/misc/h5clear.c
+++ b/tools/src/misc/h5clear.c
@@ -32,7 +32,7 @@
#define H5F_ACS_SKIP_EOF_CHECK_NAME "skip_eof_check"
/* Default increment is 1 megabytes for the --increment option */
-#define DEFAULT_INCREMENT 1024 * 1024
+#define DEFAULT_INCREMENT (1024 * 1024)
static char * fname_g = NULL;
static hbool_t clear_status_flags = FALSE;