summaryrefslogtreecommitdiffstats
path: root/src/H5Dmpio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-04-23 18:02:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-04-23 18:02:41 (GMT)
commit4c3073f955898ce857f940e3e9ca05c6a3cb201f (patch)
tree8ab78c9a40471e3a604ebb0d28b0b508db663831 /src/H5Dmpio.c
parent5bb857476f99118cda0e54ea522f52933a582747 (diff)
downloadhdf5-4c3073f955898ce857f940e3e9ca05c6a3cb201f.zip
hdf5-4c3073f955898ce857f940e3e9ca05c6a3cb201f.tar.gz
hdf5-4c3073f955898ce857f940e3e9ca05c6a3cb201f.tar.bz2
[svn-r16846] Description:
Fix broken (for how long?) H5_ASSIGN_OVERFLOW macro to actually detect overflows during assignments, along with several errors it [now] detected. Cleaned up a fix minor warnings and/or pieces of code also. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.5.6 (amazon) in debug mode Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
Diffstat (limited to 'src/H5Dmpio.c')
-rw-r--r--src/H5Dmpio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c
index 6693348..afa9201 100644
--- a/src/H5Dmpio.c
+++ b/src/H5Dmpio.c
@@ -956,7 +956,10 @@ if(H5DEBUG(D))
/* Chunk address relative to the first chunk */
chunk_addr_info_array[u].chunk_addr -= ctg_store.contig.dset_addr;
- H5_ASSIGN_OVERFLOW(chunk_disp_array[u], chunk_addr_info_array[u].chunk_addr, haddr_t, MPI_Aint);
+
+ /* Assign chunk address to MPI displacement */
+ /* (assume MPI_Aint big enough to hold it) */
+ chunk_disp_array[u] = (MPI_Aint)chunk_addr_info_array[u].chunk_addr;
} /* end for */
/* Initialize the buffer with the constant value 1 */