summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2004-09-03 19:17:50 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2004-09-03 19:17:50 (GMT)
commita266107f0d2109e5595fdac6e9f18b6954eb8378 (patch)
tree70a2f900558df8e92d04f0654da08d453732c475 /src
parentd0bc7e5274469d7aea77a0256285e40aef8666e6 (diff)
downloadhdf5-a266107f0d2109e5595fdac6e9f18b6954eb8378.zip
hdf5-a266107f0d2109e5595fdac6e9f18b6954eb8378.tar.gz
hdf5-a266107f0d2109e5595fdac6e9f18b6954eb8378.tar.bz2
[svn-r9201] Purpose:
bug fix Description: the dataset region reference data was not portable between the Cray T3E and other machines Solution: this was due to the fact that the buffer to store the heap ID and index was using a sizeof(int) for its size 4 is used instead of sizeof(int) to permit portability between the Crays and other machines (the heap ID is always encoded as an int32 anyway) Platforms tested: Cray T3E (read data from linux) linux solaris aix Misc. update:
Diffstat (limited to 'src')
-rw-r--r--src/H5Rpublic.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Rpublic.h b/src/H5Rpublic.h
index cadc826..bef73db 100644
--- a/src/H5Rpublic.h
+++ b/src/H5Rpublic.h
@@ -55,7 +55,10 @@ typedef struct {
/* Needs to be large enough to store largest haddr_t in a worst case machine (ie. 8 bytes currently) */
} hobj_ref_t;
-#define H5R_DSET_REG_REF_BUF_SIZE (sizeof(haddr_t)+sizeof(int))
+#define H5R_DSET_REG_REF_BUF_SIZE (sizeof(haddr_t)+4)
+/* 4 is used instead of sizeof(int) to permit portability between
+ the Crays and other machines (the heap ID is always encoded as an int32 anyway)
+*/
/* Dataset Region reference structure for user's code */
typedef struct {
unsigned char heapid[H5R_DSET_REG_REF_BUF_SIZE]; /* Buffer to store heap ID and index */