diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-10-28 18:51:20 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-10-28 18:51:20 (GMT) |
commit | 5834d259974a03f2ad1e053c23f2b6f2df303f74 (patch) | |
tree | b7901db967042279198f5e2580aed1412fd261a3 /src/H5R.c | |
parent | b506e17d08778191330ae57a65b3c6194142f00c (diff) | |
download | hdf5-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |