diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2011-04-11 16:51:45 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2011-04-11 16:51:45 (GMT) |
commit | 57e65197486beffc8aeb1c32e132bc4136990eab (patch) | |
tree | cb8e1f112b9cb62f0128794019b3adcb6ecae08d | |
parent | 5efcedb625aba0d6e9500a3dc816adba01259731 (diff) | |
download | hdf5-57e65197486beffc8aeb1c32e132bc4136990eab.zip hdf5-57e65197486beffc8aeb1c32e132bc4136990eab.tar.gz hdf5-57e65197486beffc8aeb1c32e132bc4136990eab.tar.bz2 |
[svn-r20471] Merged 20453 from trunk (minor fix to quiet compiler warning about integer overflow).
-rw-r--r-- | test/links.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/links.c b/test/links.c index e0e3992..065ae08 100644 --- a/test/links.c +++ b/test/links.c @@ -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(); |