mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
[svn-r20453] Reordered two expressions to avoid integer overflow (quiets a compiler warning).
This commit is contained in:
parent
e4c9340564
commit
c480a8c717
@ -3566,11 +3566,11 @@ external_set_elink_fapl1(hid_t fapl, hbool_t new_format)
|
||||
|
||||
sprintf(sv[H5FD_MEM_LHEAP], "%%s-%c.h5", 'l');
|
||||
memb_name[H5FD_MEM_LHEAP] = sv[H5FD_MEM_LHEAP];
|
||||
memb_addr[H5FD_MEM_LHEAP] = HADDR_MAX*2/3;
|
||||
memb_addr[H5FD_MEM_LHEAP] = (HADDR_MAX/3)*2;
|
||||
|
||||
sprintf(sv[H5FD_MEM_OHDR], "%%s-%c.h5", 'o');
|
||||
memb_name[H5FD_MEM_OHDR] = sv[H5FD_MEM_OHDR];
|
||||
memb_addr[H5FD_MEM_OHDR] = HADDR_MAX*5/6;
|
||||
memb_addr[H5FD_MEM_OHDR] = (HADDR_MAX/6)*5;
|
||||
|
||||
/* create "multi" fapl */
|
||||
multi_fapl = h5_fileaccess();
|
||||
|
Loading…
Reference in New Issue
Block a user