summaryrefslogtreecommitdiffstats
path: root/test/links.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2011-04-08 20:20:20 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2011-04-08 20:20:20 (GMT)
commitc480a8c7172ad99d3093063fb7e7619cbc6c8626 (patch)
tree17b599ed2710f2fc6859695a70621555901dcf34 /test/links.c
parente4c9340564fe34e7f2d9d57649bf128a4b1076e8 (diff)
downloadhdf5-c480a8c7172ad99d3093063fb7e7619cbc6c8626.zip
hdf5-c480a8c7172ad99d3093063fb7e7619cbc6c8626.tar.gz
hdf5-c480a8c7172ad99d3093063fb7e7619cbc6c8626.tar.bz2
[svn-r20453] Reordered two expressions to avoid integer overflow (quiets a compiler warning).
Diffstat (limited to 'test/links.c')
-rw-r--r--test/links.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/links.c b/test/links.c
index 54b4a1b..50801c0 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();