mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Fix compile error - declaration after executable statement
This commit is contained in:
parent
b89d428087
commit
27596d1157
@ -7065,6 +7065,7 @@ static void
|
||||
make_random_offset_and_increment(long nelts, long *offsetp, long *incp)
|
||||
{
|
||||
long inc;
|
||||
const 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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user