diff options
Diffstat (limited to 'src/H5Flow.c')
-rw-r--r-- | src/H5Flow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5Flow.c b/src/H5Flow.c index cb518e6..2ec0897e 100644 --- a/src/H5Flow.c +++ b/src/H5Flow.c @@ -1033,8 +1033,10 @@ H5F_addr_pack(H5F_t __unused__ *f, haddr_t *addr, const unsigned long objno[2]) assert(objno); assert(addr); - addr->offset=objno[0]; - addr->offset|=((uint64_t)objno[1])<<(8*sizeof(long)); + addr->offset = objno[0]; +#if SIZEOF_LONG<SIZEOF_UINT64_T + addr->offset |= ((uint64_t)objno[1]) << (8*sizeof(long)); +#endif return(SUCCEED); } |