summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishwanath Venkatesan <vish@hdfgroup.org>2013-09-05 18:31:22 (GMT)
committerVishwanath Venkatesan <vish@hdfgroup.org>2013-09-05 18:31:22 (GMT)
commitf7031b238f2e8175c0a5aaa93b11fe50813bfe2e (patch)
tree57043c3d217cd3c2ca7cc2a6fc75457df15ad63b
parent6bdf45c74ae6e35cc9e934328fb8207b0a716288 (diff)
downloadhdf5-f7031b238f2e8175c0a5aaa93b11fe50813bfe2e.zip
hdf5-f7031b238f2e8175c0a5aaa93b11fe50813bfe2e.tar.gz
hdf5-f7031b238f2e8175c0a5aaa93b11fe50813bfe2e.tar.bz2
[svn-r24100] minor fix while creating a memory datatype for native writesinactive/hdf5_ff_compactor
-rw-r--r--src/H5VLiod_dset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5VLiod_dset.c b/src/H5VLiod_dset.c
index 1e4f7c9..612590b 100644
--- a/src/H5VLiod_dset.c
+++ b/src/H5VLiod_dset.c
@@ -1225,7 +1225,7 @@ int H5VL_iod_server_compactor_write (void *_list, int num_requests)
buf = (void *)list[request_counter].mem_buf;
#if H5_DO_NATIVE
- native_dims[0] = (hsize_t)(size/src_size);
+ native_dims[0] = (size_t)H5Sget_select_npoints(space_id);
write_buf = (char *)buf;
#endif
buf_ptr = (uint8_t *)buf;
@@ -1237,7 +1237,7 @@ int H5VL_iod_server_compactor_write (void *_list, int num_requests)
for (hi = 0; hi < list[request_counter].num_mblocks; hi++){
total_length += list[request_counter].mblocks[hi].len;
}
- native_dims[0] = (hsize_t)(total_length/src_size);
+ native_dims[0] = (size_t)H5Sget_select_npoints(space_id);
#endif