unstick r1873943

Revision 1873943

Date:
2020/02/12 13:41:25
Author:
jorton
Revision Log:
Fix test failures seen on 32-bit architectures (Fedora Raw Hide, both
i686 and armv7hl) when building with GCC 10 snapshots.

* subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c
(get_rev_contents): Avoid signed integer overflow on platforms with
32-bit long.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • subversion/trunk/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c

     
    59 59 get_rev_contents(svn_revnum_t rev, apr_pool_t *pool)
    60 60 {
    61 61 /* Toss in a bunch of magic numbers for spice. */
    62 apr_int64_t num = ((rev * 1234353 + 4358) * 4583 + ((rev % 4) << 1)) / 42;
    62 apr_int64_t rev64 = rev;
    63 apr_int64_t num = ((rev64 * 1234353 + 4358) * 4583 + ((rev64 % 4) << 1)) / 42;
    63 64 return apr_psprintf(pool, "%" APR_INT64_T_FMT "\n", num);
    64 65 }
    65 66