diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-05-20 05:48:39 -0700 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-24 15:00:37 +0100 |
commit | 3edbc441654cf182d6f2273dc8b4f066be35a1fb (patch) | |
tree | 8787892db1d80c34ce4aa2491836d4e27984620b /tests | |
parent | b26e51e08bc8c404ad2e68078bbe4ecd070b2674 (diff) | |
download | libgit2-3edbc441654cf182d6f2273dc8b4f066be35a1fb.tar.gz |
object: use literal constant in bigfile test
Don't calculate 4 GiB as that will produce a compiler warning on MSVC.
Just hardcode it.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/object/tree/read.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/object/tree/read.c b/tests/object/tree/read.c index 6fe224b16..de2e64c68 100644 --- a/tests/object/tree/read.c +++ b/tests/object/tree/read.c @@ -75,8 +75,9 @@ void test_object_tree_read__two(void) } #define BIGFILE "bigfile" + #ifdef GIT_ARCH_64 -# define BIGFILE_SIZE (size_t)4 * 1024 * 1024 * 1024 /* 4 GiB */ +#define BIGFILE_SIZE (off_t)4294967296 #else # define BIGFILE_SIZE SIZE_MAX #endif |