summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-20 20:57:06 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-20 20:57:06 (GMT)
commit8a9a6cdd92040819dc5f701127c99a2043c3d056 (patch)
tree2677537bc6010e42d1d8db765aa526c2bef00b27 /test
parent16aa64aa72036569bd4dc1cd05e9c0b8ec7e60a3 (diff)
downloadhdf5-8a9a6cdd92040819dc5f701127c99a2043c3d056.zip
hdf5-8a9a6cdd92040819dc5f701127c99a2043c3d056.tar.gz
hdf5-8a9a6cdd92040819dc5f701127c99a2043c3d056.tar.bz2
Correct compile statement order
Diffstat (limited to 'test')
-rw-r--r--test/dsets.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dsets.c b/test/dsets.c
index d017ff3..26a47f0 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -7065,6 +7065,7 @@ static void
make_random_offset_and_increment(long nelts, long *offsetp, long *incp)
{
long inc;
+ long maxinc;
HDassert(0 < nelts);
@@ -7073,7 +7074,7 @@ make_random_offset_and_increment(long nelts, long *offsetp, long *incp)
/* `maxinc` is chosen so that for any `x` in [0, nelts - 1],
* `x + maxinc` does not overflow a long.
*/
- const long maxinc = MIN(nelts - 1, LONG_MAX - nelts);
+ maxinc = MIN(nelts - 1, LONG_MAX - nelts);
/* Choose a random number in [1, nelts - 1]. If its greatest divisor
* in common with `nelts` is 1, then it will "generate" the additive ring
@@ -13132,7 +13133,7 @@ test_versionbounds(void)
return FAIL;
} /* end test_versionbounds() */
-
+
/*-----------------------------------------------------------------------------
* Function: test_object_header_minimization_dcpl
*