summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorRichard Warren <Richard.Warren@hdfgroup.org>2017-08-15 13:17:04 (GMT)
committerRichard Warren <Richard.Warren@hdfgroup.org>2017-08-15 13:17:04 (GMT)
commitf84af6ecc6ec547545c167018ea3400f9171c8ab (patch)
treeb7e8629f8aa79d366b10e1d35c6d2b32fdbfd91e /testpar
parent6a5aa46e936340ed540359290374fa909f9213a6 (diff)
downloadhdf5-f84af6ecc6ec547545c167018ea3400f9171c8ab.zip
hdf5-f84af6ecc6ec547545c167018ea3400f9171c8ab.tar.gz
hdf5-f84af6ecc6ec547545c167018ea3400f9171c8ab.tar.bz2
Fix the t_bigio test so that it runs on 32bit machines
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_bigio.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/testpar/t_bigio.c b/testpar/t_bigio.c
index a4a1323..ca2b55d 100644
--- a/testpar/t_bigio.c
+++ b/testpar/t_bigio.c
@@ -785,7 +785,7 @@ dataset_big_write(void)
}
/* create a memory dataspace */
- mem_dataspace = H5Screate_simple (1, &bigcount, NULL);
+ mem_dataspace = H5Screate_simple (1, dims, NULL);
VRFY((mem_dataspace >= 0), "");
/* set up the collective transfer properties list */
@@ -903,7 +903,7 @@ dataset_big_write(void)
VRFY((ret >= 0), "H5Dclose1 succeeded");
free(wdata);
-#endif
+#endif
H5Fclose(fid);
}
@@ -1217,7 +1217,7 @@ dataset_big_read(void)
if(coords) free(coords);
/* create a memory dataspace */
- mem_dataspace = H5Screate_simple (1, &bigcount, NULL);
+ mem_dataspace = H5Screate_simple (1, dims, NULL);
VRFY((mem_dataspace >= 0), "");
/* set up the collective transfer properties list */
@@ -1684,8 +1684,9 @@ coll_chunktest(const char* filename,
VRFY((mem_dataspace >= 0), "mem dataspace created succeeded");
}
else {
+ hsize_t dsdims[1] = {num_points};
current_dims = num_points;
- mem_dataspace = H5Screate_simple (1, &current_dims, NULL);
+ mem_dataspace = H5Screate_simple (1, dsdims, NULL);
VRFY((mem_dataspace >= 0), "mem_dataspace create succeeded");
}
@@ -1962,8 +1963,9 @@ coll_chunktest(const char* filename,
VRFY((mem_dataspace >= 0), "");
}
else {
+ hsize_t dsdims[1] = {num_points};
current_dims = num_points;
- mem_dataspace = H5Screate_simple (1, &current_dims, NULL);
+ mem_dataspace = H5Screate_simple (1, dsdims, NULL);
VRFY((mem_dataspace >= 0), "mem_dataspace create succeeded");
}