summaryrefslogtreecommitdiffstats
path: root/src/H5mpi.c
diff options
context:
space:
mode:
authorRichard Warren <Richard.Warren@hdfgroup.org>2019-10-07 23:53:19 (GMT)
committerRichard Warren <Richard.Warren@hdfgroup.org>2019-10-07 23:53:19 (GMT)
commite2405c1091e71cf1e3186bb87c4ca8e696537aa2 (patch)
tree0ce3cea16b879daf4a1dd8eb9826e9bc3e693251 /src/H5mpi.c
parentd7e83cc51016bfa201cfe1d49522286226816829 (diff)
downloadhdf5-e2405c1091e71cf1e3186bb87c4ca8e696537aa2.zip
hdf5-e2405c1091e71cf1e3186bb87c4ca8e696537aa2.tar.gz
hdf5-e2405c1091e71cf1e3186bb87c4ca8e696537aa2.tar.bz2
Another cleanup pass as suggested by the reviewers.
Diffstat (limited to 'src/H5mpi.c')
-rw-r--r--src/H5mpi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5mpi.c b/src/H5mpi.c
index aa9004d..f01e16a 100644
--- a/src/H5mpi.c
+++ b/src/H5mpi.c
@@ -26,7 +26,10 @@
/****************/
/* Local Macros */
/****************/
-
+#define TWO_GIG_LIMIT (1 << 31)
+#ifndef H5_MAX_MPI_COUNT
+#define H5_MAX_MPI_COUNT (1 << 30)
+#endif
/*******************/
/* Local Variables */
@@ -52,7 +55,7 @@ H5_mpio_set_bigio_count(hsize_t new_count)
{
hsize_t orig_count = bigio_count;
- if((new_count > 0) && (new_count < TWO_GIG_LIMIT)) {
+ if((new_count > 0) && (new_count < (hsize_t)TWO_GIG_LIMIT)) {
bigio_count = new_count;
}
return orig_count;