summaryrefslogtreecommitdiffstats
path: root/src/H5R.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-10-28 18:51:20 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-10-28 18:51:20 (GMT)
commit5834d259974a03f2ad1e053c23f2b6f2df303f74 (patch)
treeb7901db967042279198f5e2580aed1412fd261a3 /src/H5R.c
parentb506e17d08778191330ae57a65b3c6194142f00c (diff)
downloadhdf5-5834d259974a03f2ad1e053c23f2b6f2df303f74.zip
hdf5-5834d259974a03f2ad1e053c23f2b6f2df303f74.tar.gz
hdf5-5834d259974a03f2ad1e053c23f2b6f2df303f74.tar.bz2
[svn-r816] Fixed bug with references on certain platforms.
Diffstat (limited to 'src/H5R.c')
-rw-r--r--src/H5R.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5R.c b/src/H5R.c
index 4316adb..e9a296b 100644
--- a/src/H5R.c
+++ b/src/H5R.c
@@ -138,12 +138,14 @@ H5R_create(void *_ref, H5G_entry_t *loc, const char *name, H5R_type_t ref_type,
switch(ref_type) {
case H5R_OBJECT:
{
+ haddr_t addr;
hobj_ref_t *ref=(hobj_ref_t *)_ref; /* Get pointer to correct type of reference struct */
uint8 *p; /* Pointer to OID to store */
/* Set information for reference */
p=(uint8 *)ref->oid;
- H5F_addr_encode(loc->file,&p,(const haddr_t *)sb.objno);
+ H5F_addr_pack(loc->file,&addr,&sb.objno[0]);
+ H5F_addr_encode(loc->file,&p,&addr);
break;
}