diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-07-30 02:55:33 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-07-30 02:55:33 (GMT) |
commit | 238950487f6348544b64fda3143479c6ab589fde (patch) | |
tree | e2985b88137935511547333d9a9c2c25d74c57e5 /src/H5Ocache.c | |
parent | 7c22743e8eaa5e5d2ffc8b0db7518ed6c5be40ee (diff) | |
download | hdf5-238950487f6348544b64fda3143479c6ab589fde.zip hdf5-238950487f6348544b64fda3143479c6ab589fde.tar.gz hdf5-238950487f6348544b64fda3143479c6ab589fde.tar.bz2 |
[svn-r17270] Description:
Bring r17265:17269 from trunk to revise_chunks branch
Tested on
FreeBSD/32 6.3 (duty)
(h5committest not required on this branch)
Diffstat (limited to 'src/H5Ocache.c')
-rw-r--r-- | src/H5Ocache.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/H5Ocache.c b/src/H5Ocache.c index 6c86681..d396896 100644 --- a/src/H5Ocache.c +++ b/src/H5Ocache.c @@ -187,10 +187,16 @@ H5O_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * _udata1, /* Time fields */ if(oh->flags & H5O_HDR_STORE_TIMES) { - UINT32DECODE(p, oh->atime); - UINT32DECODE(p, oh->mtime); - UINT32DECODE(p, oh->ctime); - UINT32DECODE(p, oh->btime); + uint32_t tmp; /* Temporary value */ + + UINT32DECODE(p, tmp); + oh->atime = (time_t)tmp; + UINT32DECODE(p, tmp); + oh->mtime = (time_t)tmp; + UINT32DECODE(p, tmp); + oh->ctime = (time_t)tmp; + UINT32DECODE(p, tmp); + oh->btime = (time_t)tmp; } /* end if */ else oh->atime = oh->mtime = oh->ctime = oh->btime = 0; |