summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Rf.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-09-14 05:04:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-09-14 05:04:25 (GMT)
commitb73f3230590f7716ac9bc603bd6692345a376c8e (patch)
treef3ed8a6ffc5a30b1c5fe6d726ebcdf3ced429d51 /fortran/src/H5Rf.c
parent147951e4bb7a7967bbec2324b6f5cc66e40260f3 (diff)
downloadhdf5-b73f3230590f7716ac9bc603bd6692345a376c8e.zip
hdf5-b73f3230590f7716ac9bc603bd6692345a376c8e.tar.gz
hdf5-b73f3230590f7716ac9bc603bd6692345a376c8e.tar.bz2
[svn-r9250] Purpose:
Bug fix Description: Correct typedef for dataset region references to avoid struct alignment issues on Crays. Solution: Change the typedef for hdset_reg_ref_t from a struct to an array of unsigned char's of the correct size and propagate the appropriate adjustments around the code. Platforms tested: FreeBSD 4.10 (sleipnir) Linux 2.4 (verbena) w/fortran Cray T90 (subzero) w/fortran Cray SV1 (wind) w/fortran & parallel Cray T3E (cyclone) w/fortran & parallel
Diffstat (limited to 'fortran/src/H5Rf.c')
-rw-r--r--fortran/src/H5Rf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fortran/src/H5Rf.c b/fortran/src/H5Rf.c
index 06cb6e3..070efdd 100644
--- a/fortran/src/H5Rf.c
+++ b/fortran/src/H5Rf.c
@@ -102,7 +102,7 @@ nh5rcreate_region_c (int_f *ref, hid_t_f *loc_id, _fcd name, int_f *namelen, hid
HDfree(c_name);
if (ret_value_c >= 0) {
- HDmemcpy (ref, ref_c.heapid, H5R_DSET_REG_REF_BUF_SIZE);
+ HDmemcpy (ref, &ref_c, H5R_DSET_REG_REF_BUF_SIZE);
ret_value = 0;
}
return ret_value;
@@ -127,7 +127,7 @@ nh5rdereference_region_c (hid_t_f *dset_id, int_f *ref, hid_t_f *obj_id)
hdset_reg_ref_t ref_c;
hid_t c_obj_id;
- HDmemcpy (ref_c.heapid, ref, H5R_DSET_REG_REF_BUF_SIZE);
+ HDmemcpy (&ref_c, ref, H5R_DSET_REG_REF_BUF_SIZE);
/*
* Call H5Rdereference function.
@@ -192,7 +192,7 @@ nh5rget_region_region_c (hid_t_f *dset_id, int_f *ref, hid_t_f *space_id)
hid_t c_space_id;
hdset_reg_ref_t ref_c;
- HDmemcpy (ref_c.heapid, ref, H5R_DSET_REG_REF_BUF_SIZE);
+ HDmemcpy (&ref_c, ref, H5R_DSET_REG_REF_BUF_SIZE);
/*
* Call H5Rget_region function.