diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-07-30 01:59:24 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-07-30 01:59:24 (GMT) |
commit | e99906f5175e1516a9f28b3acbcffd962637ca89 (patch) | |
tree | 71119df458d9eebee588761243ba6d5205ee816d /src/H5Ocache.c | |
parent | 0836a8cf5652392f59d3917446a7ca2af9234e09 (diff) | |
download | hdf5-e99906f5175e1516a9f28b3acbcffd962637ca89.zip hdf5-e99906f5175e1516a9f28b3acbcffd962637ca89.tar.gz hdf5-e99906f5175e1516a9f28b3acbcffd962637ca89.tar.bz2 |
[svn-r17268] Description:
Bring r17266 from 1.8 branch to trunk:
Clean up various compiler warnings from IRIX64 build
Tested on:
Mac OS X/32 (amazon) debug & production
(yes, I know it's not an IRIX64 system :-)
Too minor to require h5committest
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; |